Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Passing values from ui action to ui page processing script

Community Alums
Not applicable

Hello,

I want to create a UI Action and pass the value to UI Page processing page. I created UI Action and UI Page but able to get the parameters to processing script.

UI Action

find_real_file.png

UI Page

find_real_file.png

Processing Script

find_real_file.png

Please suggest the way to get the values to processing script from ui action

 

Regards,

prudhvi

1 ACCEPTED SOLUTION

BALAJI40
Mega Sage

Hi,

You can assign the value to the input variable and use the value in the process script.

 

sample code:

<j2:set var="jvar_req_id" value="${sysparm_prequest}" />
<input type="hidden" id="request" name="request" value="$[jvar_req_id]" />

 

use the "request" directly in the processing script.

View solution in original post

1 REPLY 1

BALAJI40
Mega Sage

Hi,

You can assign the value to the input variable and use the value in the process script.

 

sample code:

<j2:set var="jvar_req_id" value="${sysparm_prequest}" />
<input type="hidden" id="request" name="request" value="$[jvar_req_id]" />

 

use the "request" directly in the processing script.