Need to clear Value in watchlist

s_nandhini
Tera Contributor

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 ..

1 ACCEPTED SOLUTION

suvro
Mega Sage
Mega Sage
8 REPLIES 8

HarshTimes
Tera Guru

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",'');


}


suvro
Mega Sage
Mega Sage

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


s_nandhini
Tera Contributor

Yes i have wrote UI Policy .



Yeah even i tried the same its not working.


g_form.setValue("person_added",'');


Hi Nandhini


Try clearvalue function


g_form.clearValue('person_added');