Required doesnt work

Manke 26 Apr, 2011
Hi!
Congratulations with this great piece of software. Im new in this but i'm already thrilled.
But (for now)i have one question. Some fields i have stamped as "required" doesnt act like that when i fill the form in my website. I can submit the form without filling these fields.

Here some of the HTML:
 <div class="form_element cf_heading">
    <h2 class="cf_text">AANMELDINGSFORMULIER <BR>
SEIZOEN 2011/2012 <BR>FRAPPANT MUZIEKTHEATER</h2></center>
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_heading">
    <h3 class="cf_text">Persoonlijke gegevens deelneme(e)m(st)er</h3>
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 220px;">Voornaam</label>
    <input class="cf_inputbox required validate-alpha" maxlength="150" size="30" title="" id="text_2" name="text_2" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 220px;">Achternaam:</label>
    <input class="cf_inputbox required validate-alpha" maxlength="150" size="30" title="" id="text_3" name="text_3" type="text" />


etc Where did i go wrong?

Kind regards
Manke
Aluizojr 26 Apr, 2011
Hi Manke!

I had the same problem of yours when I tried to use a different and more interesting Login Plugin.

The reason was the "System - Mootools Upgrade" set to "Enable". This was a requirement for the Login, but also caused problems with the validation, so I had to turn it to "Disable", and return with the default login module of Joomla!. I use the v 3.2 version.
If I'm correct, Greyhead posted a solution to a similar problem. Looks like you need to force load another mootools version library. Unfortunately, I don't have the piece of code.

Also, I would recommend you check if you enabled "Live Javascript Validation" at the "Validation" tab, just click at the form's name, in "Forms Management".

Best luck,
Aluizo Jr.


PS.: just a suggestion, when posting code, put it surrounded with "code", that turns easier to understand.🙂
GreyHead 26 Apr, 2011
Hi Manke,

Please post a link to the form so we can take a quick look. It's probably a JavaScript problem as Aluizo suggests.

Bob
Aluizojr 26 Apr, 2011
No problem Manke,

I pasted your form here and I got only the required fields validation, so no bypassing required fields. Also noted there's no messages related to the invalid input types, the "title" attribute of the form items, contains a validation text when the input is wrong...

I hope Greyhead has a better insight of this case.

Best luck,
Aluizo Jr.
GreyHead 26 Apr, 2011
Hi Manke,

Not much I'm afraid. The form without the template works OK so there is a conflict with something in the template but I can't see what that is. There are no obvious JavaScript errors appearing :-(

Bob
Manke 26 Apr, 2011
Hi aluizojr and Bob,

Strange, isnt it?!

Well i decided to deinstall Chronoforms and then reinstall it again.
Hopefully it will work then.

I will keep you informed.
Thanks again for helping me finding a solution.

Kind regards

Manke
Netherlands
Manke 26 Apr, 2011
Hi!

It works.. I reinstalled Chronoforms.. and now in works!
(see attachments)

So many thanks.. the problem is solved.

Kind regards
Manke
Aluizojr 26 Apr, 2011
Hey Manke!🙂

Congratulations on your success! Hope you progress with time like me (recent user of CC and CF) and everyone, including the masters.

Thanks to Greyhead for the support too!

Best of luck,
Aluízo Jr. 😀
This topic is locked and no more replies can be posted.