Forums

Radio box Validation don't work

federcla 21 Jun, 2013
Hi,

i don't know why, but the validation in radio box don't work, there is a solution for this problem?

tks
GreyHead 21 Jun, 2013
Hi federcla,

It works OK as far as I know. Please post a link to the form so I can take a quick look.

Bob
federcla 21 Jun, 2013
I can't because the project is in localhost

I don't know why but the JS Validation work in all another elements and not in radio box

this is the code that i have seen with the strument of firefox


<div class="clear"></div><div id="error-message-mese"></div></div><div class="ccms_form_element cfdiv_radio" id="autoID-fbd4a3fa9923b97dc0388b3a63762991_container_div" style=""><input type="hidden" name="competenza" value="" alt="ghost" />
<div style="float:left; clear:none;"><input type="radio" name="competenza" id="competenza_0" title="" value="ric" />
<label for="competenza_0">RICAVI</label>
<input type="radio" name="competenza" id="competenza_1" title="" value="cos" />
<label for="competenza_1">COSTI</label>
</div><div class="clear"></div><div id="error-message-competenza"></div></div><div class="ccms_form_element cfdiv_submit" id="autoID-ee5205d367ba693c50c7718e94555bc3_container_div" style="text-align:left"><input name="input_submit_3" class="" value="Submit" type="submit" container_id="0" />
<div class="clear"></div><div id="error-message-input_submit_3"></div></div><input type="hidden" name="6416d5875dec1c75130300614c902c46" value="1" /></form><!-- don't remove the following 3 lines if you didn't buy a subscription --> 



this is a problem for me because it's an very important control for me for my form

you can help me?
GreyHead 23 Jun, 2013
Hi federcla,

I don't see any validation added there? Have you checked the box in the Radio button element?

It works OK when validation is set up.

Bob
federcla 24 Jun, 2013
i have insert the flag in the validation area, but it don't work, when i push the submit botton it don't make the control, run the form even though I did not select anything in the radio box
GreyHead 24 Jun, 2013
Hi federcla,

You can see it working OK here. The first radio buttons are your HTML with the validation classes added; the second is a standard ChronoForms radio box with the validation box checked.

Do you have any JavaScript errors on the page?

Bob
federcla 25 Jun, 2013
hi Bob,

it's strange because in the form there are other elements, 1 file upload, 1 text box, 1 drop down and 1 radio box, all with the control validation required, and the validation work in all elements except the radio box

i don't know if i have errors with JavaScript, where can i see this?

i have disabled the joomla Debug system, i must run this?

looking inside my joomla component i have seen that the chronoforms plugin is disabled, it's correct that it is disabled?

i have installed the Gantry framework for the graphic, could this be the problem?

tks
GreyHead 25 Jun, 2013
Hi federcla,

i don't know if i have errors with JavaScript, where can i see this?

Use your web browser web developer tools, usually click F12 to access them; then look at the Console tab.

i have disabled the joomla Debug system, i must run this?

No.

looking inside my joomla component i have seen that the chronoforms plugin is disabled, it's correct that it is disabled?

Unless you want to use it, you don't need it.

i have installed the Gantry framework for the graphic, could this be the problem?

Possibly.

Please post a link to the form so I can take a quick look.

Bob
federcla 25 Jun, 2013
hi Bob,

you can find my project in this link

xxxxxxxxxxxx.xx

for made the login use:
User = temporary
Pass = temp1

after the login you must click on the menu "Caricamento Dati" here you will find the form.

"Caricamento Dati" is a file upload element, you can upload only CSV file, if you upload another type of file it should fail, but it don't work😟

"Anno" is allready set

"Mese" you can choose some option as you prefer

the last you find the radio box that not work

tks for all
GreyHead 25 Jun, 2013
Hi federcla,

It looks as though the validation isn't set. Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
federcla 25 Jun, 2013
I sent you the file you asked me
GreyHead 25 Jun, 2013
Hi federcla,

Please uncheck the 'ghost' option. When this is set there is always a value for the id so the validation doesn't work as you would expect.

Also, in the Custom code action please put single quotes round the 'Y' date format string as it shows a PHP warning at the moment.

Bob
federcla 26 Jun, 2013
nothing, In spite of changes still does not work
GreyHead 26 Jun, 2013
Hi federcla,

You can see it working OK here. I don't have any other suggestions :-(

Bob
federcla 26 Jun, 2013
ok, thank you anyway
This topic is locked and no more replies can be posted.