hjanweja 0 Report post Posted December 4, 2013 Hi Xperts, I would like to create a variable so that I can capture a particular value from the form. The value that I want to capture is not a part of the URL parameter list. Here is the Javascript I have written - function getPersonID() { var dgReport = document.getElementById("dgReport"); var QS = dgReport.rows[1].cells[1].innerHTML; return QS.split("&")[0]; } How can I ensure that this JS gets executed when the form is being displayed and how can I use the return value of this JS after 20 steps? I would like to return its value into a variable which I can use later in the script. I created the Javascript function (right click on step) and it created a JS as a substep of the form. I even saved this JS on my desktop and added it to the javascript library. Any variable I create within the script does not show up in the list of global variables so I cant resuse it. Any help would be appreciated. Thanks ! Quote Share this post Link to post Share on other sites
sergei 0 Report post Posted December 5, 2013 You can use the $Search function. Quote Share this post Link to post Share on other sites