Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

UI Policy not hiding fields based on country selection in form

WanRedzuan
Kilo Contributor

Hi Community,
I’m trying to create a form where selecting a specific country should display only the related project checkbox fields. Here’s what I’ve done so far:

  • Created a UI Policy to hide all project fields when no country is selected.
  • Added conditions so that when Indonesia is selected, only Indonesian project fields appear, and similarly for Malaysia.

Issue:
Despite setting these conditions, when I select a country, all project checkboxes are displayed instead of only the relevant ones.

What I expected:

  • If no country is selected → all project fields hidden.
  • If Indonesia selected → only Indonesian project fields visible.
  • If Malaysia selected → only Malaysian project fields visible.

What actually happens:

  • All project fields remain visible regardless of country selection.

Question:

  • Am I missing something in the UI Policy configuration?
  • Do I need to use UI Policy Actions or Client Scripts for this scenario?
  • Any best practices for conditional visibility based on field selection?
0 REPLIES 0