dropdown value not setting post saving record

klavan32
Tera Contributor

Hi All,

 

 I am facing an issue where option is not setting post saving the record, in xml record it is showing but in ui view it is setting as none,

there running ui policy where on loading the form it should set the field as none, if i am explicitly checking if record is not new then it is setting next option in ui not the backend selected one.

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

@klavan32 

then it means some script is clearing that value when form loads

what debugging did you do?

what's your requirement and what did you configure for this?

💡 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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @klavan32 

Please check whether any client scripts or business rules are causing the issue.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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]

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

Anurag Tripathi
Mega Patron
Mega Patron

HI, 

You are on the right track, look at the client side scripts (UI policies/Client scripts), it could be any other script that might be impacting.

-Anurag

klavan32
Tera Contributor

if i move clear options and add options code in UI policy inside the if block thats checking if new record , then saved record is having expected value but all dropdown is not controlled