Dependent Field is not refreshing when case is opened again

sri vijaya
Tera Contributor

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 

2 ACCEPTED SOLUTIONS

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:

  1. In the UI Policy condition, set it to => Event is not Epidemic.

  2. In the UI Policy Action, set Visible to False, and ensure that the "Clear the field value" option is checked.

 

Cheers,

Tai Vu

View solution in original post

Hi,

Please update your UI Policies as suggested below:

Update condition like: Event IS NOT Epidemic

Screenshot 2023-11-30 at 3.46.35 PM.png

Set Visible = False

Check the 'Clear the field value' Checkbox

Screenshot 2023-11-30 at 3.44.25 PM.png

 

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

8 REPLIES 8

Tai Vu
Kilo Patron
Kilo Patron

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.

Timi_0-1701337961508.png

 

So the logic should be if Event is not Epidemic, we hide the Event Details and clear its value.

 

Cheers,

Tai Vu

 

manjusha_
Kilo Sage

@sri vijaya 

 

 

Share screenshot of your ui policy 

Thanks,

Manjusha Bangale

Anil Lande
Kilo Patron

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).

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

sri vijaya
Tera Contributor

Hi @Anil Lande @manjusha_ @Tai Vu 

Screenshots of ui policy