Home » Developer & Programmer » Forms » questionnaire online (forms 6i)
|
Re: questionnaire online [message #622584 is a reply to message #622556] |
Wed, 27 August 2014 14:58   |
 |
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Here's what I think: create two tables - one that contains questions, and the second one that contains answers to those questions (master-detail relationship). All questions should have the same number of answers (say, 5 of them). Why? Because it'll make the form a lot simpler as you won't have to hide/display items dynamically.
The third table would contain answers (foreign keys to both previously mentioned tables).
A form would replicate such a model: one block with questions, another block with answers (both blocks query-only), and the third block with answers/checkboxes.
When the form starts up, execute query so that blocks are populated with the first question and its answers. Let the user make his/her choice. Once they are done, they would push the "Next question" button which would, effectively, do NEXT_ITEM call and move to the next question.
If you ever want to add new questions, no problem - just add new records to master-detail tables and you're ready to go.
If possible, try to write full words. I'm not sure what "the question marked is the fol" means, nor what "what if q creeara new questions" is so - sorry if my answer isn't what you expected. That's partially because I didn't understand what you are saying.
|
|
|
|
|
Goto Forum:
Current Time: Mon Mar 10 23:38:51 CDT 2025
|