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

If my solutions helps you to resolve the issue, Please accept solution and Hit "Helpful".

Thanks,
Gopi
2 ACCEPTED SOLUTIONS

Harish KM
Kilo Patron
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
  }
}
Regards
Harish

View solution in original post

Hi @Gopi Naik1 

can you try using setVisible instead of setDisplay?

Regards
Harish

View solution in original post

6 REPLIES 6

Anand Kumar P
Giga Patron
Giga Patron

Hi @Gopi Naik1 ,

 

Create Catalog UI Policy and make condition assignment group as ABC . The Catalog UI Policy to be created at Catalog Item (not the MRVS Level). You will see the Internal Name of MRVS appear as a variable in Catalog UI Policy Action make it to visible false.

 

Mark it as helpful and solution proposed if it serves your purpose.

Thanks,

Anand

Hi @Anand Kumar P ,

 

Thanks for your response. My requirement is to hide based on assignment group of Target record. Assignment group is not a variable on catalogue, it's field on target record. I don't think we can access target table fields on catalogue ui policy condition.

Thanks,

Gopi

If my solutions helps you to resolve the issue, Please accept solution and Hit "Helpful".

Thanks,
Gopi

Hi @Gopi Naik1 ,

For that you have to write client script assignment group depends on your criteria then if assignment group is ABC then make it visible false.

if(assignmentgroup=='ABC')

{

g_form.setDisplay('variable_set_name',false);

}

Thanks,

Anand

Harish KM
Kilo Patron
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
  }
}
Regards
Harish