Hi,
I have a form which has 2 pages. I have a bunch of JavaScript functions under script objects on page 1. How can I access these functions from page 2?
I tried the following but none of it work:
form1.page2.#variables[0].testScript.doThisNow();
form1.page2.variables[0].testScript.doThisNow();
form1.page2.variables.testScript.doThisNow();
Please help.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
Simplest way would be to drag the script object to be under the root node (form1). On both pages would would then be able to reference the function by:
testScript.doThisNow();
If you leave the script object under page1, then from page2, the following should work:
page1.testScript.doThisNow();
Hope that helps,
Niall
Views
Replies
Total Likes
Hi,
Simplest way would be to drag the script object to be under the root node (form1). On both pages would would then be able to reference the function by:
testScript.doThisNow();
If you leave the script object under page1, then from page2, the following should work:
page1.testScript.doThisNow();
Hope that helps,
Niall
Views
Replies
Total Likes
Yes, it worked. Thanks!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies