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.

Auto Populate the user data into the catalog form

sasipriya
Tera Contributor

Hi Team,

 

 can anyone help me on below requirement

I need to autofill the user details in the catalog form when I select the user in the request for a variable.

 

Please check the screenshot.

 

Thanks,

Sasipriya.

7 REPLIES 7

Brad Bowman
Kilo Patron
Kilo Patron

If this instance is on the Utah version or later, use the Auto Populate feature on each variable definition. 

https://www.servicenow.com/community/developer-articles/auto-populate-a-variable-based-on-a-referenc... 

Otherwise use getReference in an onChange Catalog Client Script when requested_for changes

https://docs.servicenow.com/bundle/tokyo-api-reference/page/app-store/dev_portal/API_reference/Glide... 

 

shubhamdubey
Mega Sage

Hi @sasipriya 

 

You can use the OOB functionality which is available in TOKYO and later versions.

 

Screenshot (50).png

Pavankumar_1
Mega Patron

Hi @sasipriya ,

can you refer below article it will help you on the reference data population

https://www.servicenow.com/community/developer-articles/auto-populate-reference-data-in-service-cata...

let us know if need any help

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

Hi Pavankumar,

  Thanks for responding and this auto populate feature is not working . Can you please provide me the on change client script if possible.

 

Thanks,

Sasipriya.