Hide options from sys choice table and ensure it is not visible in list view as well

swapnil_singh
Tera Contributor

Hi All,

 

I have a requirement to disable few options from a choice field.

 

I am using 'g_form.removeOption('<<field name>>','<<Value>>') -on load client script to hide the choices on the form view and it works but how to ensure that those options are not visible/available on the list view as well?

 

Regards

2 REPLIES 2

Basheer
Mega Sage

HI @swapnil_singh ,

You can't remove them but you can do work around without selecting them using OnCellEdit Client Scripts.

You can even do the ACL functionality to achieve but I would recommend OnCellEdit for your requirement.

 

Let me know if you need help in scripting.

 

 

Please hit like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.

Cheers,
Mohammed Basheer Ahmed.

Hi Basheer,

 

I tried using  g_form.removeOption('<field name>','<value>'); in the oncellEdit client script but it didn't gave the expected outcome..can you help me with the script?

 

Regards