Forums

RC4.11 Validation Not Working?

demo38 25 Apr, 2009
Hello, I'm having issues with the validation not working in RC4.11. I read in the forums that Mootools is no longer being used and to add the alert for the required fields in the title="" tags, which I've done, but no validation occurs?

I created the form using the wizard checking Required, URL, etc. I can see validate-url, etc in the form code, but it not only doesn't care if nothing is selected, but it will not check for file type either for some reason.

Is this possibly a current bug?

Thanks!
-Jonathon
GreyHead 25 Apr, 2009
Hi jonathin,

Yes, there's a bug in the validate-url validation regexp that breaks the Javascript. Max found a fix last evening that will be in the next release.

For the moment I suggest that you temporarily remove this validation class.

Bob

PS Technically the new validation library itself is MooTools independent but the implementation here still uses MooTools to attach the validations to the inputs.
roeiegans 29 Apr, 2009
Same problem here. How would I do that exactly, removing the validation class? What will happen if I do this? Will it function as it's supposed to?
GreyHead 29 Apr, 2009
Hi roeiegans,

In the form HTML find the input and remove the 'validate_url' class.

Bob
roeiegans 29 Apr, 2009
OK, sorry... I'm not that technical, but I do need the fields to be required. This is my code at the inputbox:

<div class="form_item">
<div class="form_element cf_dropdown">
<label class="cf_label" style="width: 200px;">Jubileum: *</label>
<select class="cf_inputbox validate-selection" id="select_2" size="1" title="Verplichte keuze!" name="select_1">
<option value="">Maak uw keuze</option>
<option value="Ja">Ja</option>
<option value="Nee">Nee</option>

What piece would I remove now? And again, after doing so, will it point out to fill in the required fields instead of submitting the form?
GreyHead 29 Apr, 2009
Hi roeiegans,

You said that you had the same problem as demo38 - which was 'validate-url' not working . . . but there's no url field there. So what is the problem that you are seeing?

Bob
This topic is locked and no more replies can be posted.