Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Dynamically generate radio button list on runtime.

$
0
0

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.

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.


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>