UI Policy not hiding fields based on country selection in form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi @WanRedzuan
First please remove the policy that created for Hiding all fields when country is empty. Mostly it is causing the conflict.
Step 1: Configure the "Indonesia" Policy
-
Condition: Country is Indonesia.
-
Reverse if false: Checked (True).
-
UI Policy Actions:
-
Add all Indonesia project fields -> Visible: True.
-
(Do not add the Malaysia fields here).
-
Step 2: Configure the "Malaysia" Policy
-
Condition: Country is Malaysia.
-
Reverse if false: Checked (True).
-
UI Policy Actions:
-
Add all Malaysia project fields -> Visible: True
-
Happy to help! If this resolved your issue, kindly mark it as the correct answer ✅ and Helpful 👍and close the thread 🔒 so others can benefit too.
Warm Regards,
Deepak Sharma
Community Rising Star 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hello @WanRedzuan ,
