How to open a record producer via UI action and prepopulate values

Community Alums
Not applicable

Hi All,

I have a record producer. I want to navigate/open the record producer page via a UI Action (form button) and prepopulate value on a particular field

Example: I have a ci record open (cmdb_ci) and i have a button on the form. When i click the button, it should take me to the record producer and prepopulate the CI field data (Reference field)

Thanks in advance!

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

You can use a client side ui action that redirects the user to the record producer form and passes a url parameter. You'd then need to write an onload client script on the record producer form that grabs the url parameter and populates the value.



3 Ways to Populate Values in ServiceNow via the URL


View solution in original post

1 REPLY 1

Brad Tilton
ServiceNow Employee
ServiceNow Employee

You can use a client side ui action that redirects the user to the record producer form and passes a url parameter. You'd then need to write an onload client script on the record producer form that grabs the url parameter and populates the value.



3 Ways to Populate Values in ServiceNow via the URL