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

As   I have told you earlier, you need a reference qualifier for this not a client script


Thanks.. i missed that reply...   i m using simple condition like status not retired in the reference qualifier.. changing it to advanced generated the below script



status!=bbaba8c113026e40cecdf5104244b067^EQ



i tried to include ur script along with this by modifying it to



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



But it didnt work, whats wrong here?



P.S : When i include only ur line of code, its works as expected for me..


I have changed it a bit but not working



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


Abhinay Erra
Giga Sage

Try this



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


Thanks a lot