Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

UI Page Help !!

vidishaagarwal5
Tera Expert

How we can access parameter from UI action to Ui Page?

2 ACCEPTED SOLUTIONS

Ravi Gaurav
Giga Sage

Hi @vidishaagarwal5 

 

Example: pass parameter from UI action as shown below:

 

RaviGaurav_1-1760074867246.png

 

Method 1: Access parameter in html code.

We can attach value to html tag directly by using below syntax:
value="${sysparm_number}
Access parameter in UI Page HTML Code as shown below:

View solution in original post

Ravi Gaurav
Giga Sage

Hi @vidishaagarwal5 

There are another methods..

 

Method 2: Access parameter in UI Page client script.

Access parameter in UI Page Client Script Code as shown below:

RaviGaurav_2-1760075028178.png

Note: remember to always use variable name starting with sysparm_xxxxx

 

View solution in original post

6 REPLIES 6

Ravi Gaurav
Giga Sage

Hi @vidishaagarwal5 

There are another methods..

 

Method 2: Access parameter in UI Page client script.

Access parameter in UI Page Client Script Code as shown below:

RaviGaurav_2-1760075028178.png

Note: remember to always use variable name starting with sysparm_xxxxx

 

vidishaagarwal5
Tera Expert

Thanks @Ravi Gaurav The above code snippet worked for me exactly