1
0
-1

I am adding multiple applicants in the application form as a page group.

I am on primary applicant page group, and want to add another applicant (as another page group) with some logic defined at Primary applicant page group level. So what I require is to label the new applicant page group added as "Applicant N" and when I moved into that new added page group and define the name of the applicant (in text field) then the label of the page group should change to the name defined in the text field.

Also, there is one delete applicant button, the label for which also change based on the label on the page group.


The image below illustrates the problem.



    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi,

      One way would be to edit the expression in the page label and change it to something like this:

      {{data.$applicantName || 'Page Two'}}

      Then, when you determine you have a valid name to use, set the value into data.$applicantName.

      Set the button text using the same method, i.e. use '||' in your expression so that it will use the value of data.$applicantName when it has one.

        CommentAdd your comment...