Not quite sure why this was released in its current state, there seems to be so much missing (or the documentation isnt there)
In contour we have lots of custom validation on our forms, ie to check emails were not in use etc.. and to do this we used the FormRenderController_FormValidate in the ApplicationEventHandler. However this seems to have dissapeared?
Does anyone know how to use custom validation on these forms? Seems like an essentail bit of functionality to me.??
Its hitting the code and adding the error to the collection but there is no validation showing, I couldnt see it in the source but I can take another look
Sorry for the slow response, Im back on this and cannot see the errors appear in the source code which is generated after the form is submitted, its hitting the validation and adding the errors to the model errors correctly? The standard mandatory validation on thr form itself works fine, just not the custom ones?
The standard forms validation is client side so works fine, but when the page is submitted it hits teh custom validation and adds the erro rmessages but does not reload the page which I assume is the reason it doesnt show teh error in the updated model?
Have you got a solution for this regarding to show the validation error please, because like yours, I cannot see an errors after the custom validation?
Forms custom validation
Not quite sure why this was released in its current state, there seems to be so much missing (or the documentation isnt there)
In contour we have lots of custom validation on our forms, ie to check emails were not in use etc.. and to do this we used the FormRenderController_FormValidate in the ApplicationEventHandler. However this seems to have dissapeared?
Does anyone know how to use custom validation on these forms? Seems like an essentail bit of functionality to me.??
Hi Tony,
The documentation for the Umbraco Forms, can be found here: https://our.umbraco.org/documentation/Products/UmbracoForms/
Hope this can help you.
/Dennis
Comment author was deleted
Yeah was gone but will be back in v4.0.3, you can already upgrade to a nightly http://nightly.umbraco.org/UmbracoForms/nightlies/
Ah fantastic, will save countless hours rebuilding :)
Comment author was deleted
so in Forms it will be the event Umbraco.Forms.Web.Controllers.UmbracoFormsController.FormValidate
Great, I was looking in that controller for a validation event previously, glad I was at least in the right area :)
How do I get the validation error messages to appear? Im adding them to the Model error collection as I did with contour but nothing is showing?
Comment author was deleted
That should do the trick, will try to reproduce
Comment author was deleted
Yeah just tested and it works like expected, are you sure the code is getting hit, so that your form captions are the ones you are checking for?
Comment author was deleted
Just tested the same setup and it works so I think it will have to do with the check on captions
Its hitting the code and adding the error to the collection but there is no validation showing, I couldnt see it in the source but I can take another look
Sorry for the slow response, Im back on this and cannot see the errors appear in the source code which is generated after the form is submitted, its hitting the validation and adding the errors to the model errors correctly? The standard mandatory validation on thr form itself works fine, just not the custom ones?
The standard forms validation is client side so works fine, but when the page is submitted it hits teh custom validation and adds the erro rmessages but does not reload the page which I assume is the reason it doesnt show teh error in the updated model?
Hi Tony,
First all, Happy Christmas.
Can I ask you how have you solved the issue you was encountering, regarding the custom validation error messages?
Thank you very much.
Hi Tony,
How have you solved the issue please?
Thank you.
Hi Guys,
Anyone can help me?
I am trying to do a custom validation for Umbraco forms but I do not have FormValidate:
Umbraco.Forms.Web.Controllers.UmbracoFormsController.FormValidate
FormValidate does not exist in UmbracoFormsController.
Any help please?
Kind Regards
Hi Tony or someone,
Have you got a solution for this regarding to show the validation error please, because like yours, I cannot see an errors after the custom validation?
Thank you :)
is working on a reply...