1
0
-1

Hi team,

I have tried by changing the of the page dynamically but i am not able to achieve it.

Note:

Hello - {{data.firstName}}

{{data.firstName}} => value we are getting from Form.

So the value should be Hello Surendarvel( value from the firstName text field)


Thanks

Suren

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Depending on scenario, there is a way.

      var myPage1 = Form.getItemFromPath("data.nextTopic");
      myPage1.label = Util.isBlank(data.page1Name) ? "New Thing" : data.page1Name;

      This works OK for pages embedded in a Page Group, or when using the Tram Line nav style.  It doesn't appear to update the Chevron nav style for the top-level pages (the Page Group pages still updated their names).

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

        You could add something like:

        {{(data.lastName ==="" || data.firstName ==="") ? 'Page Name' : 'Page Name ' + data.firstName +' ' + data.lastName }}

        on the text property of the Page, however, not sure why you would want to do that. I think it would be better design to simply update a a Text Display component or modify the Page Display property and use that as the display title of the page.


        1. Brian Gaydon

          Hi Gary,


          The use case here is for pages that deal with co-applicant verification to be titled with the names of the co-applicants. This has been requested by Citi and we are not planning to push back on the requirement.

          The issue we're having is that it does not appear to be possible to have a dynamic page title that will reflect in the navbar. The properties for a page allow you to insert field values into several text areas using the label editor, but that functionality is not available for the menu text, which only accepts plain text. This means that we can set the page name dynamically, but it will never reflect in the navbar.


          Is there some step we're missing or is the functionality we're looking for simply not available at the moment? Thanks for the help.

        CommentAdd your comment...