- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2023 01:46 AM - edited ‎11-30-2023 01:48 AM
Hi Team
i have 2 fields 1.Event (choice)and 2.Event details (choice) in case form
Event details field is dependent on Event Field as "If event =Epidemic then only Event details field should be visible with choices"( i have created a ui policy)
In first step In case from, I have selected Event = Epidemic and Event details=Flu and saved the form
In second step ,in same case i have selected Event="some other choice" when Event details field should not be visible and saved the form
In third step,in same case then again selected Event =Epidemic so then i expected Event details should be visible as blank with None but its appeared as "Flu " in which i selected this as in first step and saved the form and its not refreshed
I am not sure is this the existed behavior as it will be stored in table for his field value
Please help to resolve this issue
@Dr Atul G- LNG @Danish Bhairag2 @Tai Vu
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2023 02:18 AM - edited ‎11-30-2023 02:19 AM
Hey @sri vijaya
As I mentioned earlier, when the Event Details become invisible, the value is not cleared. So when you save the form, the Event Details keep the value and save to the database.
Let's attempt the following changes:
In the UI Policy condition, set it to => Event is not Epidemic.
In the UI Policy Action, set Visible to False, and ensure that the "Clear the field value" option is checked.
Cheers,
Tai Vu

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2023 02:19 AM
Hi,
Please update your UI Policies as suggested below:
Update condition like: Event IS NOT Epidemic
Set Visible = False
Check the 'Clear the field value' Checkbox
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2023 01:55 AM
Hi @sri vijaya
It seems like you implemented the UI Policy in a manner that doesn't clear the value when making the variable invisible.
So the logic should be if Event is not Epidemic, we hide the Event Details and clear its value.
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2023 01:55 AM - edited ‎11-30-2023 01:58 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2023 01:56 AM
Hi,
I believe your UI policy is only hiding the 2nd field when condition is not true. The value selected in field is always there if you have not cleared it.
Please share your UI policy configuration, I would suggest changes to meet your requirement.
If you don't want to use script then you can use 'Clear Value' checkbox on UI Policy Action (like mandatory, readonly behaviour).
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2023 02:12 AM