I posted this on the joomla forum but it started thinking about it and wondered if it would be possible to do in Chronoforms the collection of emails, survey and storing in a data base I am sure would be a piece of cake. The variable responder (in bold below) would be the tricky part at least for me. My guess would be a PHP fuction added to the after submit code box. But that is getting a little over my head
"I am looking for a survey component that will give the person taking it a canned response that is determined by how they answer 3 multiple choice questions out of a set of 30.
For example if the user Jane Doe answers questions 13, 14 and 20 with the letter "B, C, A" then she gets response "1-saying she should paint her walls blue to match her personality", then if the user John Doe answers questions 13, 14 and 20 with the letter "A, B, D" then he gets response "2-saying he should paint his walls red to match his personality"
The 3 questions would not mention color or gender that is just used in the response.
to get a little simpler with the logic:
If a person answered A or C in 2 out of the 3 questions then they get response "1" at the end of the survey
If a person answered B or D in 2 out of the 3 questions then they get response "2" at the end of the survey
The correct canned response could be in the form of a) an email since I would like to request their email address at the start of the survey, or b) as a redirect to 2 different urls depending on what was answered. The 2 different responses will always be the same.
All Data would need to be stored in a database that is able to export to excel.
Willing to look into custom development or if you have a suggestion of another component that would be great!
thanks for your help!"
By the way Thanks for the great component. The new version is pretty easy to work with!
"I am looking for a survey component that will give the person taking it a canned response that is determined by how they answer 3 multiple choice questions out of a set of 30.
For example if the user Jane Doe answers questions 13, 14 and 20 with the letter "B, C, A" then she gets response "1-saying she should paint her walls blue to match her personality", then if the user John Doe answers questions 13, 14 and 20 with the letter "A, B, D" then he gets response "2-saying he should paint his walls red to match his personality"
The 3 questions would not mention color or gender that is just used in the response.
to get a little simpler with the logic:
If a person answered A or C in 2 out of the 3 questions then they get response "1" at the end of the survey
If a person answered B or D in 2 out of the 3 questions then they get response "2" at the end of the survey
The correct canned response could be in the form of a) an email since I would like to request their email address at the start of the survey, or b) as a redirect to 2 different urls depending on what was answered. The 2 different responses will always be the same.
All Data would need to be stored in a database that is able to export to excel.
Willing to look into custom development or if you have a suggestion of another component that would be great!
thanks for your help!"
By the way Thanks for the great component. The new version is pretty easy to work with!
Hi jxsn,
Yes this is perfectly practical either with PHP in the back end or JavaScript in the front end. As you say the tricky bit is getting the logic crystal clear and then coding it.
Bob
Yes this is perfectly practical either with PHP in the back end or JavaScript in the front end. As you say the tricky bit is getting the logic crystal clear and then coding it.
Bob
Cool Anybody want to get me a quote on this sort of a thing or a link to some very clear tutorials? I would like to learn how to do this sort of thing but it is getting to the level where I am pretty clueless. I can build the form and should have very clear logic from my client very soon would just need the php to trigger the response.
thanks
Jake
thanks
Jake
Hi Jake, try the professional services forum, the code to this is very dependent to it and its hard to find tutorials for that!
Cheers
Max
Cheers
Max
This topic is locked and no more replies can be posted.
