1
0
-1

We have the scenario where we need to create a radio button group, where the labels on the radio buttons correspond to the name of Applicant 1 and Applicant 2. So for example (where "0" = the radio button)

Who is signing this form?

0 Both applicants

0 <applicant 1 name> only

0 <applicant 2 name> only

 

Where the text in the <> brackets are dynamically added. 

 

A suggestion has come up to use graphical buttons but I can't seem to get the caption field to update. See screenshots:

Trying to populate button caption with first name field

Set the button name as per:

 

 

Preview and….no dice:

 

Be good to understand what has been missed?

 

 


    CommentAdd your comment...

    3 answers

    1.  
      1
      0
      -1

      The approach Fiona originally took now works. 

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

        You can use a Data-Driven Radio group. Just set the Data Source property to the name of a data element (it can be anything), and then add a data field that sets that data element.

        For example, if you set the radio group's Data Source to "testRadioGroup", and then add a data field with the following calculation rule:

        data.testRadioGroup = [
         {"label": "Both Applicants", "value": "Value1"}, 
         {"label": data.applicant1Fullname, "value": "Value2"}, 
         {"label": data.applicant2Fullname, "value": "Value3"}
        ];

         

        you should get the functionality you're after - make sure you use the correct data elements for applicant1 and applicant2.

        1. Sam Fursdon

          Hi David, thanks for your response. I've used your exact code above, but can't seem to get this to work for the data-driven radio group. Using this code does however work for the data-driven drop-down group - would that indicate a bug in maestro specific to radio groups?

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

        AFAIK, there are two ways to affect captions/rich text content dynamically:

        1. References, which you have tried, and is clearly not working as you expect
        2. Calculations: Any rich text object can have a calculation associated with it which can return a string which is used as the content. The issue of course is, can you access the caption as a rich text object (text display type). Probably not, but worth trying.

         

          CommentAdd your comment...