using a Client Script

AdithyanS
Giga Contributor

There are two fields, Requested For and Manager, in two separate application tables. When I select a user in the Requested For field, the Manager field should automatically populate with that user's manager and become read-only. How can I implement this in ServiceNow using a Client Script?

1 REPLY 1

Tanushree Maiti
Tera Patron

Hi @AdithyanS 

 

You can use an onChange Client Script (on Requested_for ) along with GlideAjax to call a Script Include, handle the required logic on the server side, and return the result to the Client Script.

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti