how can two on change client scripts applied on same form can communicate?

nikhil142057806
Tera Contributor

i want that data stored in one variable of on change client script of certian field can be accessed in on change client script of other.

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@nikhil142057806 Use g_scratchpad.<variable name>for accessing global variables across client scripts. The "g_scratchpad" object works fine on a regular form like incident and on Service portal but it doesn't work on Service Catalog Form.

 

Please mark the response helpful and correct if it manages to address your question.

 

View solution in original post

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@nikhil142057806 Use g_scratchpad.<variable name>for accessing global variables across client scripts. The "g_scratchpad" object works fine on a regular form like incident and on Service portal but it doesn't work on Service Catalog Form.

 

Please mark the response helpful and correct if it manages to address your question.

 

Thanks for the solution, It is working perfectly