Hide a multirow table in a form

Diana Yazmin
Tera Contributor

Hello experts,

 

We want a multirow table to be visible when a field is selected, is it possible? In the catalog policies we do not identify any options.

 

DianaYazmin_0-1724030320973.png

Thank you

1 ACCEPTED SOLUTION

Vrushali  Kolte
Mega Sage

Hello @Diana Yazmin ,

 

Assuming you want to hide MRVS on change of some field value, you can achieve this requirement by creating a on change catalog client script as follows -

 

VrushaliKolte_0-1724044952636.png

Select the appropriate catalog item and variable name.

function onChange(control, oldValue, newValue, isLoading) {
   if (isLoading || newValue == '') {
      return;
   }
   if(newValue == 'abc'){ // replace the value
      g_form.setDisplay('mrvs_demo', false); //replace mrvs variable name
   } else {
      g_form.setDisplay('mrvs_demo', true); /replace mrvs variable name

   }
   
}

 

If my answer solves your issue, please mark it as Accepted ✔️& Helpful👍!

View solution in original post

2 REPLIES 2

HIROSHI SATOH
Mega Sage

Do you mean you want to hide the related list?

 

HIROSHISATOH_0-1724031765249.png

 

Vrushali  Kolte
Mega Sage

Hello @Diana Yazmin ,

 

Assuming you want to hide MRVS on change of some field value, you can achieve this requirement by creating a on change catalog client script as follows -

 

VrushaliKolte_0-1724044952636.png

Select the appropriate catalog item and variable name.

function onChange(control, oldValue, newValue, isLoading) {
   if (isLoading || newValue == '') {
      return;
   }
   if(newValue == 'abc'){ // replace the value
      g_form.setDisplay('mrvs_demo', false); //replace mrvs variable name
   } else {
      g_form.setDisplay('mrvs_demo', true); /replace mrvs variable name

   }
   
}

 

If my answer solves your issue, please mark it as Accepted ✔️& Helpful👍!