Clear Options in the List Type using Client Script (Not List collector)

kailashthiyagar
Kilo Guru

How to clear the value selected in the "List" type in custom application forms.. I tried with g_form.removeOption but it didnt work out.. Thats only for choice list..

P.S This is not for List collector.

1 ACCEPTED SOLUTION

Abhinay Erra
Giga Sage

Try this



javascript: 'sys_id!='+current.getValue('sys_id') +'^status !=bbaba8c113026e40cecdf5104244b067'


View solution in original post

14 REPLIES 14

Abhinay Erra
Giga Sage

Do you want to do that on client side?


Actually i m creating a record and there is a dependency field.. the user can choose other records in that table as dependent record but not that record itself..


I have added a client script to do the validation and i m returning false..



but also i want to remove the option from the list/...


Abhinay Erra
Giga Sage

Use g_form.clearValue('list type field name goes here');


that clears all the selections from that list.. Is there an option to clear particular record from that list?