Hi,
Got a strange issue with formit.
For some reason formit seems to display the main error message once the email field is populated even with a valid email address.
It doesn't display the actual validation reason, ie 'this field is require' or 'this isn't a valid email address' It just displays the 'A form validation error occurred. Please check the values you have entered.' message.
Strange thing is if i leave it empty it doesn't display the error.
I've even tried removing the validation parameter in the formit call and making the form and call as basic as possible.
This is the basic call i have
And the basic form is:
<form action="[[~[[*id]]]]" method="post" class="form" id="propForm">
[[!+fi.validation_error_message]]
<label for="email">
Email:<span class="error">[[!+fi.error.email]]</span>
</label>
<input type="text" name="email" id="email" value="[[!+fi.email]]" />
<button name="submit" value="Submit" type="submit">Submit</button>
</form>
Now if i change the name attribute value for the input then it seems to work ok.
I'm running modx 2.2.6 and formit 2.1.2
Anyone any ideas?