Hi all, I'm new to coldfusion mx so bear with me.
This is the scenario. A user takes a survey, when completed the answers are sent to a database. The user can then review their answers, edit anything and resubmit.
What I want to do is when they review their answers, is to display the same questions/answers/format that they had when they first entered their answers, however, this time, the checkboxes/radio buttons/text boxes will have their information already loaded with the answers they gave.
For starters, how can I preselect a checkbox or radio button to be checked or not checked? What is the attribute?
Also, I was thinking about looping through the fieldnames (which I believe is form.fieldnames?) in the form. Is it possible to figure out their type? For example, a textbox of type text, checkbox of type checkbox, and so on... What is the syntax for that?
Thanks for your help.
This is the scenario. A user takes a survey, when completed the answers are sent to a database. The user can then review their answers, edit anything and resubmit.
What I want to do is when they review their answers, is to display the same questions/answers/format that they had when they first entered their answers, however, this time, the checkboxes/radio buttons/text boxes will have their information already loaded with the answers they gave.
For starters, how can I preselect a checkbox or radio button to be checked or not checked? What is the attribute?
Also, I was thinking about looping through the fieldnames (which I believe is form.fieldnames?) in the form. Is it possible to figure out their type? For example, a textbox of type text, checkbox of type checkbox, and so on... What is the syntax for that?
Thanks for your help.