Show Form (not fields or objects) when a field is seleced above. I can show a field and hide fields but not forms as a whole

Show Form (not fields or objects) when a field is seleced above. I can show a field and hide fields but not forms as a whole

Hello
I have a multi - link object on my form.  Based on the value chosen on the form, I would like another form (not objects)  to appear below.
 
Example:
Multi-link name is Activity

Multi-Select Values BDI,HAC
If I choose BDI
 
I want to show a form called BDI_Form
 
If I choose HAC
 
I want to show a form called HAC_Form
 
 
I tried the On User Input feature on my Multi Link but it doesnt work
 
if (input.Activity  ==  "BDI")
{
    show BDI_Form;
    hide HAC_Form;
}
else if (input.Activity  ==  "HAC")
{
    show HAC_Form;
    hide BDI_Form;
}
 
The error message states:
 
Error in statement at line number 1 The Left expression is of type STRINGLIST and the right expression is of type STRING and the operator == is not valid here
 
 
 
 
Status

Answered

  You have this question 
depalca:

You can use the ".contains()" built in function to achieve your requirement as,

Copy code
  1. if (input.Activity.contains("BDI") )
    {
    your script here..
    }
    else if (input.Activity.contains("HAC") )
    {
    your script here..
    }

Regards,
Ruben(ZC Team).