Hello!
I have two buttons on a form. One is a "regular"-type button, captioned "submit", and the other is a "submit"-type button named FSSUBMIT_ .
The regular button has code behind it to set a form variable (working properly), then calls the click event of the FSSUBMIT_ button. I am receiving a "Submit cancelled" error message when I preview the xdp and I'm wondering if this is normal - I mean, once the form is hooked up into workspace will the error go away?
Here's the code behind the "regular" button:
var searchFragment = xfa.resolveNode("customerSearch"); var hideSearch = searchFragment.resolveNode("hideSearch") //form variable
hideSearch.rawValue =
"1";
FSSUBMIT_.execEvent("click");
Thanks,
Elaine
Views
Replies
Total Likes
Do you have the code set to execute server side? You will recieve that error if the form is not served from a server (like in preview mode).
Once you get it in workspace the form will be served up by the server and the submt should be able to complete.
Paul
You should be ok.
See How LiveCycle Workspace ES handles buttons in PDF forms
http://livedocs.adobe.com/livecycle/8.2/acrobat_designer/001007.html
Steve
Thanks Steve and Paul! I flagged both answers as "helpful". I didn't know that once you did that the "correct answer" button would disappear, otherwise I would have flagged them correct too.
Thank you both!
Regards,
Elaine
Views
Replies
Total Likes