Expand my Community achievements bar.

Dynamically generate radio button list on runtime.

Avatar

Level 1

Hi experts,

The scenario I am developing is as such:

A questionnaire is to be built in adobe.

My data node structure is as:

  • QUESTION
    • QUESTION_ID
    • QUESTION_TEXT
    • SELECTED_ANSWER
    • QUESTION_SCORE
  • ANSWER_OPTIONS
    • QUESTION_ID
    • ANSWER_ID
    • ANSWER_TEXT
    • ANSWER_SCORE

My form design is:

  • SF_QUESTION --> subform bound to QUESTION
    • QUESTION --> textfield bound to QUESTION_TEXT
    • SELECTED_ANSWER_ID --> hidden textfield bound to SELECTED_ANSWER
    • QUESTION_SCORE --> hidden textfield bound to QUESTION_SCORE
    • SF_ANSWER --> subform bound to ANSWER_OPTIONS
      • RADIOBUTTONLIST
        • RB - radio button

I am stuck on how should I bind to get an output like below: Needless to say that only one of the answers should be selectable.

927469_pastedImage_21.png

Questions and Answer options are maintained in database so I cannot know at design time how many radio buttons will be there in the output.

0 Replies