Disable options in Agent Workspace

GeoVic Gkou
Tera Expert

Hi all,

I would like to disable some options inside a variable of type SelectBox. Although, i achieved it in the classic view, implementing a client script, in HR Agent Workspace it doesn't work because of 

g_sc_form.getControl() function.

Is there any alternative to make it work also for the HR Workspace?
Thank you in advance!
#Workspace
2 REPLIES 2

Shraddha Kadam
Mega Sage

Hello @GeoVic Gkou ,

 

In the client script we have inbuilt method g_form.hideOption(). Please try it this method so it will hide the options inside the select box

 

Thank you.

If my response was helpful, please mark it as correct and helpful.
Thank you.

Hi @Shraddha Kadam , Should the syntax be like this "g_form.hideOption('variable_name' 'option1_value');" ?
Because is not in the recommended methods.

Also is there a method to show the options?If yes can you please provide the syntax?

The hideOption with the above syntax is not working like i wrote it.
Thanks!