Custom Block Validation.
Permalink
I am quite new to Concrete5. I am building a custom block for a website and I am following the tutorial onhttp://www.concrete5.org/documentation/how-tos/developers/understan...
I manage to save the block and display it, yet I am unable to find the solution to validation. I want to make certain fields required. Event though I can run the validation, using the validator helper, I am unable to display the errors.
I manage to save the block and display it, yet I am unable to find the solution to validation. I want to make certain fields required. Event though I can run the validation, using the validator helper, I am unable to display the errors.
you could use javascript, take a look at how some of the existing blocks do validation
Thanks for the link. It was exactly what I was looking for. Got the validation hooked up in less than 5 mins.
Thank you for all the replies, very helpfull.
Thank you for all the replies, very helpfull.
The above is from here:
http://www.concrete5.org/documentation/developers/forms/basic-valid...
You could send some invalid input and shoot it out immediately with
if your just looking to see what goes on, or
to get some pretty HTML formatted results.
is a boolean reporting the presence of errors overall.
Hope this helps!