Show/hide multi row variable set based on assignment group of case.

Gopi Naik1
Kilo Sage

Hi All,

 

I have a record producer with multi row variable set. On submitting of record producer a case will be created. I have a requirement to show/hide the multi row variable set on variable editor based on assignment group of the case. Any suggestions how can I achieve this? I tried to use g_form.setDisplay('variables.varblesetName', false), but not working as expected.

 

 

Thanks,

Gopi

2 ACCEPTED SOLUTIONS

Harish KM
Kilo Patron

Hi @Gopi Naik1 The below script will hide the multi row var set

function onLoad() {
   //Type appropriate comment here, and begin script below
  var grp = g_form.getValue('assignment_group');
  alert(grp);
  if(grp == 'b8ef24616fc331003b3c498f5d3ee434') //grp sysid
  {
    g_form.setDisplay('variables.demo',false);// pass internal name of the variableset
  }
}

View solution in original post

Hi @Gopi Naik1 

can you try using setVisible instead of setDisplay?

View solution in original post

6 REPLIES 6

Hi @Harish KM ,

 

Tried g_form.setDisplay but it's not working. I'm getting alert but variable set still visible.

 

Thanks

Gopi

Hi @Gopi Naik1 

can you try using setVisible instead of setDisplay?