- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2022 01:12 PM
I have a field 'Action on Accounts' - has 3 options: Create / Modify / Delete.
Condition requested by the customer is If option Create/Delete display field 1, field 2, field 3 ....
If user selects the Modify option, the field 1, field 2, field 3 should not be displayed. All the 3 fields are select boxes with UI policies to show/hide variables.
Everything works well, except one problem:
If user selects the Create or the Delete option and populates all the fields, but the decides to Toggle back to the Modify option. The problem is one of the fields that has a UI Policy associated with it, still gets displayed.
Solved! Go to Solution.
- Labels:
-
Request Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2022 01:15 PM
Hi,
There's an option to clear the field value within the UI Policy settings, but that is recommended to be set as it's own UI Policy.
So you would set the reverse and then select the field in the UI Policy Actions and then check the box to clear the field value.
So let's say you have field 1, field 2, field 3 to show up when Create is chosen, that is it's own UI Policy.
But if you want field 1, 2, 3 to have it's value cleared when Create is not chosen, you'd build another UI Policy, set that condition, choose those three fields and then select the clear field option.
Alternatively, you can create an onChange client script when 'x' field changes to null or a specific option, then clear the value from those fields with a method such as:
g_form.clearValue('field_name');
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2022 01:15 PM
Hi,
There's an option to clear the field value within the UI Policy settings, but that is recommended to be set as it's own UI Policy.
So you would set the reverse and then select the field in the UI Policy Actions and then check the box to clear the field value.
So let's say you have field 1, field 2, field 3 to show up when Create is chosen, that is it's own UI Policy.
But if you want field 1, 2, 3 to have it's value cleared when Create is not chosen, you'd build another UI Policy, set that condition, choose those three fields and then select the clear field option.
Alternatively, you can create an onChange client script when 'x' field changes to null or a specific option, then clear the value from those fields with a method such as:
g_form.clearValue('field_name');
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2022 02:22 PM
Thank you Allen! I think that should work!