ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:multiple checkbox , only record last answer? (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:multiple checkbox , only record last answer?
#7770
GreyHead (Admin)
Admin
Posts: 2801
graph
User Offline Click here to see the profile of this user
Re:multiple checkbox , only record last answer? 2 Months, 1 Week ago Karma: 59  
Hi Nick,

I doubt this has to do with any changes in ChronoForms. Please copy and paste the checkbox part of your form code here and I'll take a look.

Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#8262
d3v1an7 (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:multiple checkbox , only record last answer? 1 Month, 3 Weeks ago Karma: 0  
I'm having the same issue here!

Code is as follows (chopped up):

Code:

<script type="text/javascript"> function checkboxlimit(checkgroup, limit){ var checkgroup=checkgroup var limit=limit for (var i=0; i<checkgroup.length; i++){ checkgroup[i].onclick=function(){ var checkedcount=0 for (var i=0; i<checkgroup.length; i++) checkedcount+=(checkgroup[i].checked)? 1 : 0 if (checkedcount>limit){ alert("You can only select a maximum of "+limit+" items") this.checked=false } } } } </script> ...... <tr> <td valign="top"><p><strong>5. Where do you meet singles</strong></p> <p>Choose your top three</p></td> <td valign="top"><input type="checkbox" name="Q5" value="Pubs &amp; Clubs"/> Pubs &amp; Clubs<br /> <input type="checkbox" name="Q5" value="Online Dating"/> Online Dating<br /> <input type="checkbox" name="Q5" value="Speed Dating"/> Speed Dating<br /> <input type="checkbox" name="Q5" value="Social Clubs"/> Social Clubs<br /> <input type="checkbox" name="Q5" value="Blind Dates"/> Blind Dates<br /> <input type="checkbox" name="Q5" value="Friends Parties"/> Friends Parties<br /> <input type="checkbox" name="Q5" value="Mobile Dating"/> Mobile Dating<br /> <input type="checkbox" name="Q5" value="Sports Clubs/Salsa Nights"/> Sports Clubs/Salsa Nights<br /> <input type="checkbox" name="Q5" value="Singles party"/> Singles party<br /> <input type="checkbox" name="Q5" value="Facebook or MySpace"/> Facebook or MySpace<br /> <br /> </td> </tr> <tr> ...... <script type="text/javascript"> checkboxlimit(document.ChronoContact_whatsingleswant.Q5, 3) </script>
Any help would be appreciated! Thanks
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8316
admin (Admin)
Admin
Posts: 1570
graphgraph
User Online Now Click here to see the profile of this user
Re:multiple checkbox , only record last answer? 1 Month, 3 Weeks ago Karma: 22  
Hi d3v1an7,

you will need to name your checkboxes Q5i d3v1an7,

you will need to name your checkboxes Q5[]

Cheers

Max
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/13 15:33 By GreyHead.
 
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
  The administrator has disabled public write access.
#8353
d3v1an7 (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:multiple checkbox , only record last answer? 1 Month, 3 Weeks ago Karma: 0  
Thanks max.

I've done that, and it is now working - but doing that then stops the 'maximum of 3 choices' code from working...

Do you have any suggestions of why that might happen?

Thanks so much, very helpful forums here
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8391
admin (Admin)
Admin
Posts: 1570
graphgraph
User Online Now Click here to see the profile of this user
Re:multiple checkbox , only record last answer? 1 Month, 3 Weeks ago Karma: 22  
Hi,

Try to edit this line too :

Code:

checkboxlimit(document.ChronoContact_whatsingleswant.Q5, 3)
Code:

Q5[]
Cheers Max
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/14 13:11 By admin.
 
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
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials