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.

Dependent choices not display

JCanlas
Tera Contributor

Hi Team! Has anyone experienced this as well. Upon creation of the record. The choices we created doesn't display on the field which is dependent on the location. Regardless if the Location field is pre-populated. 

 

I have tried utilizing the Parent field on the cmn_location field and having the dependent value as sys_id, Parent's name, and Parent's sys_id. Set the dependent field dot-walks into Location>Parent as well and it still doesn't work. The only solution in mind is having all choices exist into each location (4 choices as 4 location). Let me know if you have any best solution in mind. Thanks!

JCanlas_2-1764577711269.png

 

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@JCanlas 

share how the dependency is handled.

is it via script or some other logic?

I think it's coming from some client script and possibly onChange

If yes then ensure that onChange also handles the dependency logic for new record by allowing it to run when form loads for new record

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader