Hide fields if another selection is made
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 11:37 AM
I have a selection in my request form and UI policies/UI actions behind each selection.
If the user selects the first radio button (do you need to join a zoom meeting) then they must answer the Yes/No question. If they select Yes, two more fields become visible (start/end date) and they need populated. If the user enters the dates for these two fields and happens to select the second radio button (do you need to schedule a one-time zoom meeting) due to a mistake, those date fields are still shown on the form but I would like to get rid/hide them. I've even marked both of those fields with the "clear the variable value".
I've attached screenshots of what the form looks like. Can someone assist?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 12:14 PM
Hi @Laura12 ,
Please share the screen shot of UI Policy along with UI Policy Action setting.
For first radio button UI Policy, you must have set the visibility true , there is other option "Reverse if false" checkbox, this will revers the field visibility if condition not meet.
or you can write similar UI Policy for second radio button and make the visibility = false.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 01:28 PM
I have attached the screenshots of my two UI Policies. Maybe that is the problem....all of the policy actions are marked as true and the checkbox is also checked on both UI Policies? See screenshots:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 02:22 PM - edited 02-02-2024 02:23 PM
Please re-visit the UI Policy condition, both the condition has different style, make sure both should be check for "Yes" ( not the label value ).
and noticed that u_kig_zrf_statedate configured as visibility = true in both UI Policy Action, once you update the second UI Policy Condition similar to first one , and update the visibility=false ( or delete that one ) in the second UI Policy Action ( because you want to hide that )
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 03:35 PM
As per the second screenshot we can see that you still setting date field(start and end date ) is visible.
For the second condition make both date field visible "false" and check.