stefangabos / Zebra_Form

A jQuery augmented PHP library for creating secure HTML forms and validating them easily
Other
98 stars 49 forks source link

Custom error template #32

Open joeljv91 opened 7 years ago

joeljv91 commented 7 years ago

Hi!

I'm trying to render custom error template for each field but this error block template is hardcoded:

$this->errors[$error_block] = '<div class="error"><div class="container">' . $content . '<div class="close"><a href="javascript:void(0)">close</a></div></div></div>';

It's a nice functionality and I really think is needed for this library to be more amazing 👍 .

I can't found anything in docs but if there is something about it please let me know.

Thanks!

stefangabos commented 7 years ago

This is something I am working on but I cannot give you a time estimate for when it will be ready. But it's going to be next year :)

joeljv91 commented 7 years ago

Perfect! thanks for the answer

sachin524 commented 7 years ago

Hi Stefan,

Have you updated the library to add custom error?

Thanks