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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Proving URL to Http submit button dynamically

Avatar

Level 2
Hi,



I would like to set the POSTing URL for the HTTP submit button using javascript. Could somebody let me know the property on the button object that I can use to do this? I dont see a "URL" property for the button in the context assistant menu that pops up when I press the "." button next to the button name in javascript.



Regards,

Badri.
0 Replies

Avatar

Level 10
To access the property that holds the submit url you will need this expression:



xfa.resolveNode("Button1.#event.#submit").target

Avatar

Level 2
Hi Paul,



Thanks a lot. Let me try this.



- Badri.

Avatar

Level 2
Hi Paul,



The solution works, but then I try to submit the form, Adobe Reader throws following warning



"This document has accessed more then one site and might be trying to share data among different location. This could be a privacy concern. Are you sure you want to continue?".



Is there a way to turn this warning off? I am using LiveCycle Forms to generate the form.



- Badri.

Avatar

Level 10
The warning is indicating that the form is being submitted to a different server than where it was served from. This is a warning message to the user that something might be wrong ....you can click the checkbox on the message that says not to show this again ..... but you will have to see it at least once.