Display a field in Mutli-row variable set upon selecting an option from a field outside the set

Sneha Karthik2
Tera Contributor

Hi Experts,

 

I got a requirement to display a variable inside the Mutli-row variable set when an option is selected from a variable which is present outside the variable set.

 

Below is my requirement:

 

SnehaKarthik2_0-1712929703993.png

If the drop-down value "Medical" is selected from the variable "Type", then another variable "Medical Student Year" need to be visible inside the Multi-row variable set (After the "Cell/Contact Number" variable).

 

Please let me know if anyone has worked on this and find the solution.

 

Thanks!

2 REPLIES 2

maroon_byte
Mega Sage

In your MRVS, create an onLoad client script with below code:

 

var type = g_service_catalog.parent.getValue('type');
if (type = <your value>)
   g_form.setVisible(<your mrvs variable>, false);
 
Regards,
Sharad

Hi @maroon_byte ,

 

Thank you so much for your reply. I tried the solution provided by you and its not working. 

I want "Medical Student Year" variable to be visible inside the MRVS when the drop-down value "Medical" is selected from the variable "Type" that is present outside the MRVS.

Is there a way to implement this by onChange client script?

 

Thanks!