We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. 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

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

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

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

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

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

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