Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Getting a form to initialize a webservice on opening.

Avatar

Level 3

Hi There,  I would like to know how it would be possible to  get a newly created form to connect to a web service and  retrieve data from it as soon as the PDF for is opened.  Im assuming a would use the doc Ready but do not know which code  will allow an automatic communication to happen without having to  click a button.  Thanks  Joey

1 Accepted Solution

Avatar

Correct answer by
Level 10

Doc Ready ...Initialize is too early

Paul

View solution in original post

4 Replies

Avatar

Level 10

You can hide (make it invisible) the web service submit button on the form and programmatically click it by using submitButtonName.execEvent("click").

Paul

Avatar

Level 3

Does submitButtonName.execEvent("click")  still go into the docReady for it to be automatic

or should I place it into Initialize?

Thanks

J

Avatar

Correct answer by
Level 10

Doc Ready ...Initialize is too early

Paul