- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2018 12:27 AM
Hi,
I have a multiple choice field with option ADD and REMOVE.
1.If ADD is selected the watch-list field should display
2.If Remove is selected the Multi-line text field should field
For example if i check ADD and add two r three members in the watch-list and again unchecked the ADD choice the watch list value should clear ..
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2018 03:16 AM
Go through this link. This might help you.
How to clear the contents of a glide list using a client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2018 12:37 AM
Hi Rajnandhini
You can write onchange client script on the choice field.
add below in the script
If(g_form.getValue('CHOICE_FIELD_NAME') =='add'){ // if the value of add is different then put that value here
g_form.setValue("watch list field name",'');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2018 01:11 AM
I guess You might have written an UI policy for this.
For: when Add is selected: in the Script Tab, in the Execute if false section : set that variable to blank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2018 01:50 AM
Yes i have wrote UI Policy .
Yeah even i tried the same its not working.
g_form.setValue("person_added",'');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2018 01:57 AM
Hi Nandhini
Try clearvalue function
g_form.clearValue('person_added');