field value empty

shivaadapa
Tera Expert

Hi,

I have created a location field referring to cmn_location in table, I have selected one value and saving the form then it is not saving with that value and location field value is automatically clearing itself. please help here!

6 REPLIES 6

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @shivaadapa 

 

Please check is any BR / script run on submit which clear the field.

*************************************************************************************************************
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 
In the list view it is showing the value but in the form view location reference field value is clearing itself.

Hi @shivaadapa 

 

It can be a data issue, like in form the display value is empty and it look like an empty field.

 

Please share some screenshot.

*************************************************************************************************************
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]

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

ChanakyaMekala
Kilo Guru

1. Please verify whether your cmn_location table has a display field as name set to true.

2. On your record, in context menu click on Show XML and verify whether location field you have created is not empty i.e., it should have some sys_id value.

3. If both of these actions are verified and are properly configured, then create after business rule with order as 0 and verify whether location field has any value by logging as gs.info("After business rule:"+current.u_location);

If it is having some value then update the same business rule with order as 1000 and verify it,
a) if it is still having proper values then there should be some onload client script that must be clearing it.
b) If it doesn't have any value then that means there is some business rule that is clearing the value. 


Please post your validation results here, to help you further.

Please mark it Helpful or Answered if it had done so