In UI Page, how to send a variable value from client script to processing script ?

Swarnim1
Tera Expert

I need to pass a variable value which is declared in Client Script to Processing Script.

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

So in your HTML, you'd want to put a hidden input like:

<input type="hidden" id="jvar_answer" name="jvar_answer" value=""/>

Then in your client script, set this id to a value:

gel('jvar_answer').value = "42";

In your processing script, you now get to refer to it as:

jvar_answer

Please mark reply as Helpful/Correct. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

6 REPLIES 6

Allen Andreas
Administrator
Administrator

Hi,

So in your HTML, you'd want to put a hidden input like:

<input type="hidden" id="jvar_answer" name="jvar_answer" value=""/>

Then in your client script, set this id to a value:

gel('jvar_answer').value = "42";

In your processing script, you now get to refer to it as:

jvar_answer

Please mark reply as Helpful/Correct. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi @Swarnim @Swarnim 

I know this post was from a year ago, haha...

but, please mark my above reply as Helpful & Correct if so.

Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi,

I just wanted to check-in on this and see how things are going?

If my reply above helped guide you correctly, please mark as Helpful & Correct.

Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi,

I just wanted to check-in on this and see how things are going?

If my reply above helped guide you correctly, please mark as Helpful & Correct.

Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!