Adobe LiveCycle PDF 提交验证
我有一个 LiveCycle PDF,其中包含需要验证的字段。我希望能够添加一个按钮来执行提交,该提交将忽略表单上的验证。如果我当前向表单添加一个按钮并设置提交属性,则验证会在提交调用之前发生,这将取消它。
I have a LiveCycle PDF that has fields requiring validation. I would like to be able to add a Button to perform a Submit that will ignore the validation on the form. If I currently add a Button to the Form and setup the submit properties, validation occurs prior to the submit call which will cancel it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以使用 xfa javascript api 禁用验证。如果将 xfa.host.validationsEnabled 属性设置为 false,则 xfa 将不会运行验证。您可以在预提交事件中设置此属性。
You can use xfa javascript api to disable validations. if you set xfa.host.validationsEnabled property false then xfa will not run validations. you can set this properties at presubmit event.
我解决这个问题的唯一方法是使用按钮进行 SOAP 调用。这将发送数据而不验证。
关于如何进行 SOAP 调用,请参阅我的旧帖子(请参阅我的答案): LiveCycle 表单中的 SOAP 调用
The only way I've gone around this is to make a SOAP call using a button. That would send the data and not validate.
On how to make a SOAP call, see an old post I had (see my answer): SOAP Calls in LiveCycle Forms
我刚刚完成并删除了要求的验证。
I just went through and removed validation where it was asked for.
您可以通过 JavaScript 提交表单,如下所示:
event.target.submitForm({cURL:encodeURI("http://..."), cSubmitAs:"PDF", cCharSet:"utf-8"});
You can submit the form by javascript like this:
event.target.submitForm({cURL: encodeURI("http://..."), cSubmitAs:"PDF", cCharSet:"utf-8"});