I using the latest version ChronoForms_V3.1_RC4.11
I created a form. Everything works perfect.
When I forgot to fill out any field the Message "This Field ist required" appears
I want to change that.
So I go to "Components-com_chronocontact-js and changed the "mooValidation" file.
But nothing happens.
Is there a new mooValidation hided in the sub folders?
Greetz
Yes, max switched validators in RC4.11 and no longer uses MooValidation.
The easy fix is to add your message in the title attribute for the field.
Bob
thanks for your advice.
But how I do that?
For Example this is the "City" Field:
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label">City</label>
<input class="cf_inputbox required" maxlength="150" size="30" title="" id="text_5" name="text_5" type="text" />
</div>
Where I have to add the "titel attribute" ?
<input class="cf_inputbox required" maxlength="150" size="30" title="You live where?" id="text_5" name="text_5" type="text" />
Bob
works perfect! Thank you.
Now I have a last question.
When you forgot to fill out any field, the Message appears.
Thats good.
But at one field it don't work.
Do you know, where is the mistake?
Thats the field:
div class="form_item">
<div class="form_element cf_checkbox">
<label class="cf_label" style="display: none;">Click Me to Edit</label>
<div class="float_left">
<table width="851" height="31" border="0">
<tr>
<td> </td>
<td><input value="I read the permission & accept" title="You have to accept!" class="radio validate-one-required" id="check00" name="check0[]" type="checkbox" />
<label for="check00" class="check_label">I read the <a href="www.foobar.com" target="_blank">Permissions</a> </label></td>
</tr>
Hello GreyHead,
works perfect! Thank you.
Now I have a last question.
When you forgot to fill out any field, the Message appears.
Thats good.
But at one field it don't work.
Do you know, where is the mistake?
Thats the field:
div class="form_item">
<div class="form_element cf_checkbox">
<label class="cf_label" style="display: none;">Click Me to Edit</label>
<div class="float_left">
<table width="851" height="31" border="0">
<tr>
<td> </td>
<td><input value="I read the permission & accept" title="You have to accept!" class="radio validate-one-required" id="check00" name="check0[]" type="checkbox" />
<label for="check00" class="check_label">I read the <a href="www.foobar.com" target="_blank">Permissions</a> </label></td>
</tr>
Hi, I can't understand, please explain alittle more ?
Max
thats the problem (sorry for my bad english, it's not my mother language)
I have a few fields in my chrono form.
For example: City, Zip Code, Street, and so on.
You have to fill out all of the fields.
If you forgot to fill out a field, the message "This Field is required" appears.
Thats good!
But there is one field which dont work.
When I forgot to fill it out, nothing happens.
There is no message which appears.
And above I posted the code from this field which dont work.
Greetz
Got it, which Chronoforms version is this ? if you have RC4.11 then this will work because the new validation library detects single checkboxes but not the old one!
Regards
Max