1
0
-1

Hi, 


I am trying to  create a click rule that does 2 things 

  1. moves the page
  2. populates a hidden data field to be true (this is required for viability on the second page). 

I have written the below which moves to the next page but does not populate the hidden data field.


Form.$Pages.move(true);
data.sfmvis === "TRUE" ;


Can you please advise.


Thanks,
Hannah 

    CommentAdd your comment...

    2 answers

    1.  
      2
      1
      0

      Hi Hannah,

      If you are trying to set the value to "TRUE" then you should be using = which is for assigning values instead of === which is used to match two values including their type which will return a boolean, eg "1" === 1 will return false.


      Regards

      Glenn

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

        Great that fixed it. Thanks Glen! (smile) 

          CommentAdd your comment...