removeOption to a Selectbox variable

Ramkumar Thanga
Mega Sage

Hi,

 

I have a select box type variable where the options are from a reference table. The following removeOption doesn't works for me. 

Is it possible to remove the option by passing the corresponding sys_id.

 g_form.removeOption('variable_name', 'sys_id');
 
Thanks!
Ramkumar
4 REPLIES 4

Abhijeet_Pawar
Tera Guru

Hello @Ramkumar Thanga ,

You can use a reference qualifier, as it refers to a table.

Thank you.

Hi @Abhijeet_Pawar ,

 

The variable comes from a variable set. We need to hide the options for a particular record producer.

 

Thanks!
Ramkumar.

Community Alums
Not applicable

Hi @Ramkumar Thanga ,

Unfortunately, you have to go by the value not sysid as per the systax:

g_form.removeOption('var_name', 'value');

Hi @Community Alums 

 

The variable comes from a variable set. We need to hide the options for a particular record producer.

As the options are records from a specific table. The value points the sys_id of the record.

 

Thanks!
Ramkumar.