Hi experts,
I have the following problem and hope that one of you can help me:
I have a form to collect data of persons:
Engineer
Consultant
For each person (repeating form area based on the data), a drop-down box shall be present with the data of the node "roles". How can this be solved? My idea is to create the content of the drop down box using Java-Script in the "initialize" event:
- read the node "roles"
- loop over the "role"[i]
- write the value of role[i] into the drop down box
Here are my problems:
- how to read the "roles" and how to put the values into the dropdown
- what about the key - values? The value in the person.role node shall be "1" or "2" and not "Engineer".
Could you please provide me an idea and a code snipped I could use? Is there probably another easy way to solve this problem?
Thank you very much.
Thomas