- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-25-2024 11:27 PM - edited ‎06-26-2024 12:22 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2024 12:49 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2024 12:49 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2024 07:38 PM
Hi @Sid_Takali ,
Thank you for the explanation. Much Appreciated. 🙂