Is it possible to do a multilevel questionnaire?

Post any questions you may have here

Is it possible to do a multilevel questionnaire?

Postby Noterious on Sat May 10, 2008 11:21 am

Is it possible to create a form with questionnaire like the following link? http://questexasia.ilinksys.com/subscribe_page.php

If you click on option#2 in the first question, a drop down menu shows up.

How do you create it using Chronoform? Just put all the javascript in 'Form Javascript' window?

Thanks

Edit: Is it possible to use a separate database to collect the form data, not Joomla database?
Noterious
Fresh Boarder
 
Posts: 12
Joined: Tue Apr 08, 2008 6:27 pm

Re:Is it possible to do a multilevel questionnaire?

Postby GreyHead on Sat May 10, 2008 2:26 pm

Ho Noterious,

Yes, and Yes.

And just to double check - by drop down menu you mean the tool-tip that displays on the mouse-over? Or did I look at the wrong thing?

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3176
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Is it possible to do a multilevel questionnaire?

Postby Noterious on Sat May 10, 2008 2:40 pm

Thanks for the reply.
But,I meant the questionnaire in the purple table in the form.
If you click on option 2 of the question '1. *What is the primary business activity of your company?', there will be another drop down menu shows up.

Thanks
Noterious
Fresh Boarder
 
Posts: 12
Joined: Tue Apr 08, 2008 6:27 pm

Re:Is it possible to do a multilevel questionnaire

Postby GreyHead on Sat May 10, 2008 4:46 pm

Hi Noterious,

Ah - missed that completely. It looks as though most of the code for that is in the form so you'd need to replicate it there in ChronoForms and put the appropriate parts of script.js into the JavaScript box.

Here's the form code for Q10.
Code: Select all
<tr>
<td width="5%" valign="top" align="right">
  <input type="hidden" value="question1" name="question1_active_field"/>
  <input id="question1" type="radio" value="10" name="question1"
    onclick="javascript: show_select("select_question1_10","question1",1);
    if (document.Sub_Form.select_question1_10 != null) { 
      show_select("select_question1_10_"+document.Sub_Form.select_question1_10.value, "question1",2);}"/>
</td>
<td width="3%" valign="top" align="left"> 10</td>
<td width="92%" valign="top">Health & Education</td>
</tr>
<tr id="select_question1_10" style="display: block;">
<td width="5%" valign="top" align="right"/>
<td width="3%" valign="top" align="left"/>
<td width="92%" valign="top">
<img src="img/L.gif"/>
  <select class="form"
    onchange="javascript:
    show_select("select_question1_10_"+this.value,"question1",2); "
    name="select_question1_10">
  </select>
</td>
</tr>
Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3176
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Is it possible to do a multilevel questionnaire

Postby Noterious on Sun May 11, 2008 2:41 am

Thank you, Greyhead. I managed to make the hidden drop down menu work. :cheer:
Noterious
Fresh Boarder
 
Posts: 12
Joined: Tue Apr 08, 2008 6:27 pm

Re:Is it possible to do a multilevel questionnaire

Postby Noterious on Sun May 11, 2008 2:56 am

Now I have another problem. :(
I want to use Mootools validation with the form, but my template has it loaded already. What should I do? I can't turn off Mootools in my template.
Any help is appreciated.
Noterious
Fresh Boarder
 
Posts: 12
Joined: Tue Apr 08, 2008 6:27 pm

Re:Is it possible to do a multilevel questionnaire

Postby admin on Sun May 11, 2008 4:38 am

Just choose mootools as the validation in Chronoforms, if it didnt work because of a conflict then go hack chronocontact.html.php so it doesn't load the files or just rename the folder "js" in the chronocontact folder so the files don't get loaded!

Cheers

Max
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 1956
Joined: Mon Aug 14, 2006 5:29 am

Re:Is it possible to do a multilevel questionnaire

Postby Noterious on Sun May 11, 2008 5:09 am

Thanks Max.

It turns out that Mootools is not a problem, but my own css class in the form creates the conflict.
After a search through Chronoform forum, I found http://www.chronoengine.com/component/o ... 9/catid,3/
, and it solved my problem.Thanks to the original poster! :)

Now I have to find a way to make my form worked with the div based multipage form.

You guys are awesome! I really appreciate the help.
Noterious
Fresh Boarder
 
Posts: 12
Joined: Tue Apr 08, 2008 6:27 pm

Re:Is it possible to do a multilevel questionnaire

Postby Noterious on Sun May 11, 2008 6:03 am

Thanks to kwelker from this post, Now I have a working div based multipage form with validation.
Noterious
Fresh Boarder
 
Posts: 12
Joined: Tue Apr 08, 2008 6:27 pm

Re:Is it possible to do a multilevel questionnaire

Postby Noterious on Sun May 11, 2008 8:12 pm

Another problem comes up.
By following the code here for the multipage div validation

Code: Select all
<input type=button onclick=" if(!valid.validate()) Event.stop(ev) ; collapseElem('mainForm_1') ; expandElem('mainForm_2') ;"   
class="mainForm" value="Next Page" />


I got an error 'ev is not defined' which I have no idea what to do.

Any idea would be appreciated

edit: I found a solution. Instead of using the code above for a form validation on 'Next Page' button, I use the following code instead. It works for me.

Code: Select all
<input type=button onclick=" if(!valid.validate()) return false ; collapseElem('mainForm_1') ; expandElem('mainForm_2') ;return true;"   
class="mainForm" value="Next Page" />
Noterious
Fresh Boarder
 
Posts: 12
Joined: Tue Apr 08, 2008 6:27 pm


Return to Questions & Answers

Who is online

Users browsing this forum: MSN [Bot] and 2 guests