Return to default value when ui policy returns false.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2019 04:43 AM
I have yes/no type fields with in catalog and i have also set default value as none by checking the tick box.
Here i have a ui policy, where this yes/no field gets enabled when another field ("B") is chosen and user chooses yes or no.
When user selects someother value in ("B") field, this yes/no should come to default "none". How to achieve this?
Is there any return false script to be written?
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2019 04:48 AM
create a onchange client script on B field and in that write
if(newValue == "someother") {
g_form.clearValue("your_field");
}
Mark the comment as a correct answer and helpful if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2019 05:03 AM
Is there any way to write it in ui policy return false statement?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2019 05:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2019 05:51 AM
Reversing of field would work for this, but it doesn't bring the value to default.