We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Populate user details on Catolog Item (onChange) clear default value?

alex2410
Tera Contributor

Hello!

I have set users Name, Location and Email on catalog item form via default value method.

 

However, if I change the Name on the form, it does not change the Location and Email to the correct one, keeps the original.

 

How do I autopopulate the Location and Email to the correct values depending on the Name variable?

 

I have tried to copy some scripts on here with no luck.

 

Thank you!

Alex

 

#scripting #catalog #portal #clientscript

1 ACCEPTED SOLUTION

Dr Atul G- LNG
Tera Patron

Hi @alex2410 

 

You can try with Auto populate feature in variable level

 

AGLearnNGrow_0-1724855639833.png

 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

3 REPLIES 3

Dr Atul G- LNG
Tera Patron

Hi @alex2410 

 

You can try with Auto populate feature in variable level

 

AGLearnNGrow_0-1724855639833.png

 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Dr Atul G- LNG
Tera Patron

https://www.servicenow.com/community/itsm-articles/using-the-variable-auto-populate-feature-with-var...

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG of course! thank you so much for this 🙂