-
Notifications
You must be signed in to change notification settings - Fork 87
Input filters on form elements are not reflected when rendered #182
Comments
@tylkomat If you would like to tackle this, we would appreciate the help. |
@tylkomat @froschdesign |
@unckleg |
Do you think it is correct to always automatically add the |
I am not a big fan of HTML 5 validation mainly because this is not consistant between browsers. Also, Message cannot be customized without javascript (see https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Form_validation#Customized_error_messages). Should ZF automatically set the required HTML attribute, it will take a mean to... get rid of it ! |
Yep
While I agree that there might be some level of customisation, |
@Ocramius |
Not really needed for ghe HTML required attribute: browsers are generally
quite clear on it
…On Sun, 12 Aug 2018, 12:33 Cvetomir, ***@***.***> wrote:
@Ocramius <https://github.com/Ocramius>
Offtopic: Maybe we should think of a way of customizing the required
message, because the current way of doing it via the NotEmpty validator
is just a workaround. What do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#182 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJakPvMQiSYqDw6ub2VtzSN_2rDsBpTks5uP_ZtgaJpZM4QZtOH>
.
|
I meant customizing the message after the validation process in the back-end (when |
That can be customised by replacing the `NotEmpty` validator
…On Sun, 12 Aug 2018, 12:45 Cvetomir, ***@***.***> wrote:
I meant customizing the message after the validation process in the
back-end (when $form->isValid() is called), hence I added the 'offtopic'.
Otherwise, I'm okay with adding the HTML5 attribute. I will investigate
and try to make a PR about it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#182 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJakAEQ46GnURojSWKU3TiJ2LgdCECWks5uP_k8gaJpZM4QZtOH>
.
|
This repository has been closed and moved to laminas/laminas-form; a new issue has been opened at laminas/laminas-form#9. |
For example setting a form element
required
in the input filter does not render the element withrequired
attribute. The same happens for any validations which could be directly handled by html5.I know I can set the attributes on the form element directly, but with this I have to maintain the same information in two separate places.
The text was updated successfully, but these errors were encountered: