ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Required fields and radiobuttons (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Required fields and radiobuttons
#4313
pim2000 (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Required fields and radiobuttons 7 Months, 2 Weeks ago Karma: 0  
I am trying to make a form with radiobuttons. People can make a choise out of 6 buttons. When I make the radiobutton required it do not work, because just one button is selected. Now it says that this field is required because the other five are not filled in.

The radiobutton list is build like this:

<input type="radio" name="Gewenst_voertuig" value="klasseA" checked>
<font face="Arial, Helvetica" size="2">klasse A - Bestelauto</font>

every name is the same and the values are different.

Any suggestion would help me out.

Thank you
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4314
GreyHead (Admin)
Support
Admin
Posts: 2902
graph
User Offline Click here to see the profile of this user
Gender: Male bobjanes Location: Brittany
Re:Required fields and radiobuttons 7 Months, 2 Weeks ago Karma: 62  
Hi pim2000,

There's a note on Anrew Tetlaw's site that says
QUOTE:
*To use the validate-one-required validator you must first add the class name to only one checkbox/radio button in the group (last one is probably best) and then place all the input elements within a parent element, for example a div element. That way the library can find all the checkboxes/radio buttons to check and place the validation advice element at the bottom of the parent element to make it appear after the group of checkboxes/radio buttons.
I think this will help.

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.
#4316
pim2000 (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Required fields and radiobuttons 7 Months, 2 Weeks ago Karma: 0  
I am a bit further now. Thanks for the quick advise, but it still gives problems.
I only gave the last one a name:

name="Gewenst_voertuig"
and put the whole radiolist in a div

but it still goes wrong


Do you have any suggestion?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4317
GreyHead (Admin)
Support
Admin
Posts: 2902
graph
User Offline Click here to see the profile of this user
Gender: Male bobjanes Location: Brittany
Re:Required fields and radiobuttons 7 Months, 2 Weeks ago Karma: 62  
Hi pim 2000,

I think that says class name, not field name. Please try with class="button_group" or something like that.

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.
#4319
pim2000 (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Required fields and radiobuttons 7 Months, 2 Weeks ago Karma: 0  
OK,

i've a input type, name and value. When I do understand you they have to be filled in for each item. The class must have a name.

I've made a div with the name ' voertuig'

So when I understand you right. Do I have to fill in voertuig in the field 'validate-one-required'

Because I don't find a class?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4320
GreyHead (Admin)
Support
Admin
Posts: 2902
graph
User Offline Click here to see the profile of this user
Gender: Male bobjanes Location: Brittany
Re:Required fields and radiobuttons 7 Months, 2 Weeks ago Karma: 62  
Hi pim2000,

Here's a snippet of the demo code from Andrew Tetlaw's site. I don't know exactly how this works with ChronoForms
Code:

<div class="field-label"><label for="field6">Sex</label>:</div> <div class="field-label"> <input type="radio" name="field6" id="field6-male" value="Male" />Male<br /> <input type="radio" name="field6" id="field6-female" value="Female" class="validate-one-required" />Female </div>
Bob<br><br>Post edited by: GreyHead, at: 2007/12/05 15:27
 
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.
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