Jump to content
WAPT Forum
Sign in to follow this  
hjanweja

Issue with capturing values of a form

Recommended Posts

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 !

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...