- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2022 07:09 AM
How to access variables defined in client script of ui page in processing script ?
I have defined a new variable in client script:
var name = 'test';
Now i want to use this 'name' in my processing script.
How can i access this ?
In processing script i am trying
var fname= name;
but this is not working.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2022 07:15 AM
hello
Try like below
<input type="hidden" id="myID" name="myID" value=""/>
Then in your client script, set your ID value like below:
gel('myID').value = "my Text";
In your processing script, access it like below:
myID
Please mark my answer correct if it helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2022 07:15 AM
hello
Try like below
<input type="hidden" id="myID" name="myID" value=""/>
Then in your client script, set your ID value like below:
gel('myID').value = "my Text";
In your processing script, access it like below:
myID
Please mark my answer correct if it helps you