- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2023 08:59 AM
Hi All,
Based on 1 option selection two will get visible on the form whenever on 2 option selection the value entered into the two fields need to clear out.
do we need to create a new ui policy or any other way to achieve this.
Need suggestions.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2023 09:09 AM
@Community Alums you can also achieve this by using onChange client script.
if(g_form.getValue("variable name")=="option2"){
g_form.clearValue("variable name 1");
g_form.clearValue("variable name 2")
}
Hope this will help you or let me know with more explaining about your requirement to help you further.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2023 09:09 AM
@Community Alums you can also achieve this by using onChange client script.
if(g_form.getValue("variable name")=="option2"){
g_form.clearValue("variable name 1");
g_form.clearValue("variable name 2")
}
Hope this will help you or let me know with more explaining about your requirement to help you further.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2023 09:14 AM
is there any possibility to get this achieve on the same ui policy that created for the visibility of the two fields when option 1 is selected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2023 09:16 AM
Hello,
Create UI policy and use the script section to clear the field values.
Please mark my response as Correct / Helpful
Thanks