Hello!
I have this webservice to generate a sequence number when the user clicks a button on the PDF form.
How do I invoke the service as soon as the form is open, instead of waiting for a click on the button?
Thank you for any ideas!
Marcos
Solved! Go to Solution.
Views
Replies
Total Likes
1) there are a number of events that fire off when a form opens / is opening / has just opened... etc
Example events that can be used
Any field... initialize
form:ready
layout:ready
docReady (is probably the best for your purpose)
Remember each event behaves differently & at different times and some bubble - for your described application, I would use the docReady event
2)
To execute the webservice button programmatically:
btn.execEvent("click");
3)
// comment your code
Views
Replies
Total Likes
1) there are a number of events that fire off when a form opens / is opening / has just opened... etc
Example events that can be used
Any field... initialize
form:ready
layout:ready
docReady (is probably the best for your purpose)
Remember each event behaves differently & at different times and some bubble - for your described application, I would use the docReady event
2)
To execute the webservice button programmatically:
btn.execEvent("click");
3)
// comment your code
Views
Replies
Total Likes