No default value but field being populated

steveturley2
Giga Expert

Our default value on our request form is being populated as '4 - Low', however, when I check the dictionary entry for that field, there is no default value specified.

The field is set to mandatory, could that be the issue?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Steve,



Can you check any client script is setting the value on form load or some ui policy script is setting the value or some display business rule.



Places to check


1) client script


2) ui policy script


3) default value


4) display business rule



Also if the field is of type choice with some drop down value without none then the first drop down value with least order is by default populated.



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


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

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Steve,



Can you check any client script is setting the value on form load or some ui policy script is setting the value or some display business rule.



Places to check


1) client script


2) ui policy script


3) default value


4) display business rule



Also if the field is of type choice with some drop down value without none then the first drop down value with least order is by default populated.



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


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

Hi @Ankur, IN my case this is not working....

 

I could see the default Value is '30' but When this field renders on form its showing '0'.

I have also tried with overriding default value to 15 but it still showing '0'.

 

Any leads would be appreciated.

Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Thanks,
Pratik Malviya

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Steve,



Any update on this?



Regards


Ankur


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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Steve,



Any update on this?


Can you mark my answer as correct, helpful and hit like if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.



Regards


Ankur


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