Hi,
In node form, on submit client side validation is working only for text field. Its is not working for file, body field because of the html structure rendered by Drupal.
How to make this work for file, body field and also on blur?

CommentFileSizeAuthor
#8 2905554-8.patch4.84 KBnikunjkotecha

Comments

nikunjkotecha’s picture

Version: 8.x-1.0-rc3 » 8.x-1.x-dev

Hi @saranya purushothaman,

It seems working fine with latest dev version for Body field. I'll check for the file field.

For validation on blur, this seems to be a new feature request for D8 version of the module. In any case can you please create a separate issue for that since both are not related to each other?

Thanks,
Nikunj

nikunjkotecha’s picture

Status: Active » Postponed (maintainer needs more info)

This seems to be an issue in core, check https://www.drupal.org/project/drupal/issues/2938441 for more details.

Not closing this for now, should be closed once the core issue is fixed and module's functionality validated.

nikunjkotecha’s picture

Status: Postponed (maintainer needs more info) » Postponed
kswamy’s picture

@nikunjkotecha Are there any plans to work on blur event ? Because of this in many cases when user enters and erases the field's value the error message is not shown.

In the D7 documentation I can see that the validation can be done based on various events.

Refer https://www.drupal.org/node/1324924. Is there any specific reason these are not provided for D8? Please clarify

kswamy’s picture

Status: Postponed » Active
nikunjkotecha’s picture

Category: Bug report » Feature request

I see no reason for that, patches welcome :)

nikunjkotecha’s picture

Status: Active » Needs review
StatusFileSize
new4.84 KB

Add config to force validation on blur.

See https://stackoverflow.com/questions/29521336/jquery-validate-plugin-vali... for more details on change that is done.

  • nikunjkotecha committed e729190 on 8.x-1.x
    Issue #2905554 by nikunjkotecha: How to enable validation on blur and...
nikunjkotecha’s picture

Status: Needs review » Fixed

Added configuration to force validation on blur.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.