Hide/Show choice options in Record Producer

Nishant26
Tera Contributor

Hi @Ankur Bawiskar ,

 

I have a requirement to hide a particular choice option of Select Box variable based on the particular record selected in Reference Variable on the Record Producer. 

 

I have written an Onchange Client Script for the implementation but now that choice option is hidden for all records selected in Reference Variable. 

 

Here is the code:

 

if (g_form.getValue('Reference Variable name') != 'sys_id of the particular record in reference variable') {
        g_form.removeOption('Select box variable name''choice option');
 }
 
Thanks!
5 REPLIES 5

Hi Sagar,

 

this works but only problem is that order sequence of these choice options are getting changed, if I am reselecting that particular record for which these choice options should be available then, these choice options are getting moved to the bottom of the choice list variable.

is there a way to make them appear at their respective order sequence?