Hide/Show based on values from Checkbox field

Hide/Show based on values from Checkbox field

Options is a checkbox field, with Option1, Option2, Option3.  Based on the selections, I want to show or hide the subform fields (named Option1, Option2, Option3)

This is what I tried but doesn't work:

  1. if (input.Options contains "Option1") 
    {
    show Option1;
    }
    else
    {
    hide Option1;
    }