Hi
I have a form where I want load some of the data from a DB with DBRead and event_id:{data:event_id}.
Now I want to create a "radios group" with data from the DB.
There are one to five entries in the DB, so we will get one to five radio buttons, depending on the "event_id"
Question 1)
How do I need to store the data in the DB to use it to populate the radios group, so that there is the same number of radios as in the DB:
- can it be in one table (as an array?) and how would it be formatted then?
- should it be in different tables for each entry
Question 2)
What functions do I need to set up in the "Setup" section of the form.
And what are the entries in the different fields (Where conditions, Select type, Fields to retrieve, Group fields, Special fields etc.)
Question 3)
What fields do I need to set up in the "Designer" section of the form (Options, Selected value, under "Advanced" tab: Reload event, Extra attributes, Data values etc)
I read the CFv6 manual (v1.0.2) but there are so many of my questions open, that I give up trying.
I would really appreciate help in solving this request.
Thank you
Hekla
I have a form where I want load some of the data from a DB with DBRead and event_id:{data:event_id}.
Now I want to create a "radios group" with data from the DB.
There are one to five entries in the DB, so we will get one to five radio buttons, depending on the "event_id"
Question 1)
How do I need to store the data in the DB to use it to populate the radios group, so that there is the same number of radios as in the DB:
- can it be in one table (as an array?) and how would it be formatted then?
- should it be in different tables for each entry
Question 2)
What functions do I need to set up in the "Setup" section of the form.
And what are the entries in the different fields (Where conditions, Select type, Fields to retrieve, Group fields, Special fields etc.)
Question 3)
What fields do I need to set up in the "Designer" section of the form (Options, Selected value, under "Advanced" tab: Reload event, Extra attributes, Data values etc)
I read the CFv6 manual (v1.0.2) but there are so many of my questions open, that I give up trying.
I would really appreciate help in solving this request.
Thank you
Hekla