In a table, field value is set to "NO", it gets changed to "None" on load of the form. No script run

Sachin Gavhane
Giga Guru

Hi Team,

As shown in below figure

SachinGavhane_0-1752011607968.png

"Publication required" is String / choice type field with the choices having values Yes / No.
if we set it to NO and save the form, the value gets correctly saved in the database and is visible in the list view.
But if we open that record, this field hold default value "None".
there is no onload script running which clears its value. Then why on load of form, it clears the value?
is it issue because of incorrectly configured UI polices?
please help


5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Sachin Gavhane 

 

Please check the dictionary entry of the same:

 

DrAtulGLNG_0-1752011999747.png

 

*************************************************************************************************************
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/atul_grover_lng [ Connect for 1-1 Session]

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

Hi @Dr Atul G- LNG 
Thanks for your reply.

I tried multiple options there.

if it is with None , then onload it sets value to None
if default is set to Yes then onload it sets value to yes

but while saving the record the value saved was "NO"
in list view it is showing as No but in the form view it shows default value - either None or yes or whatever is default.

Not sure — there might be some Business Rule running and causing this.
It’s better to log a ServiceNow support case to investigate further.

*************************************************************************************************************
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/atul_grover_lng [ Connect for 1-1 Session]

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

Kirby R
Kilo Sage

@Sachin Gavhane ,

 

This should only be UI policy or client script. please double check. Maybe this table is extended from another table and there are UI policies and client script on that table changing the value.