UI Policy not working from a choice list selection unless I save the record.

Tony McAlliste1
Tera Contributor

Hi all,

 

I thought this would be really simple and am sure I've done similar before, but I'm trying to make a field hidden until the appropriate option is selected from a choice list on the same table, and want to avoid script so am using a UI policy to make the field not visible if the choice selection is not the one that is applicable or is -none-. I'm fairly sure I've done everything required and it does work - but only after I've made the selection and saved the record, then the field becomes visible. That's not meeting the requirement as it's just more clicks for the end user. Any ideas?

7 REPLIES 7

Tanushree Maiti
Mega Patron

Hi @Tony McAlliste1 

This issue typically happens when the "Reverse if false" option is not enabled in your UI Policy. If the policy only defines behavior for when the condition evaluates to true, clearing or unchecking the choice can leave the field in an inconsistent state until the form is refreshed or saved.

 

Probable Solution: 

  • Ensure the On Load checkbox is checked so it evaluates when the form opens.
  • Check the Reverse if false box.

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Hi Tanushree,

 

Yeah, on load and reverse if false are both selected...

 

TonyMcAlliste1_0-1779285488044.png

 

Ankur Bawiskar
Tera Patron

@Tony McAlliste1 

share screenshots of that UI policy

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

Here you go...

 

TonyMcAlliste1_1-1779285514462.png