MANDATORY- PRE-LOADED WITH THE SAVED DATA

S_Arnab
Tera Contributor

I created a simple True/False field and wrote a UI Policy to make that field mandatory on meeting certain conditions. But whenever the conditions are meeting the mandatory field asterix mark (*) remains Grayed even if the field is empty and allowing me to submit the form and is not showing mandatory Red as it should be.

 

 

1 ACCEPTED SOLUTION

Sid_Takali
Kilo Patron
Kilo Patron

Hi @S_Arnab That is the default behavior of how True/False in ServiceNow platform works.

The True/False field always contains a true or false value, since it store it as a Boolean type. so it will always be considered to be filled in regardless of the status.  That's why you see the grey star - it's mandatory AND "filled in".

That is the reason many developers use dropdown with TRUE/FALSE and keeping NONE option which we can make mandatory through UI policy.

View solution in original post

2 REPLIES 2

Sid_Takali
Kilo Patron
Kilo Patron

Hi @S_Arnab That is the default behavior of how True/False in ServiceNow platform works.

The True/False field always contains a true or false value, since it store it as a Boolean type. so it will always be considered to be filled in regardless of the status.  That's why you see the grey star - it's mandatory AND "filled in".

That is the reason many developers use dropdown with TRUE/FALSE and keeping NONE option which we can make mandatory through UI policy.

S_Arnab
Tera Contributor

Hi @Sid_Takali ,

Thank you for the explanation. Much Appreciated. 🙂