1
0
-1

Hi,

Novice form designer here.  I have a dropdown multiselect field that when a user selects value X then the section below should be displayed.  For some reason the simple visibility rule of data.multiselect === "X" fails and the whole section is hidden under all instances.

Thank you

    CommentAdd your comment...

    3 answers

    1.  
      1
      0
      -1

      Hi,

      The data for a multi select dropdown is an array, so you would need to check with data.multiselect.indexOf('X') >= 0 instead of a simple comparison.


        CommentAdd your comment...
      1.  
        1
        0
        -1

        Thank you very much David and Bill.  My problem has been solved.  Appreciate your kind help.

          CommentAdd your comment...
        1.  
          1
          0
          -1

          Hi,

          The dropdown multiselect's value is an array of values selected. Not a single string value.

          So in your case you can use the following code:

          Util.contains(data.multiselect, "X")

          Regards,

          David

            CommentAdd your comment...