How to fix file field validation limit

by Ivan Jaros   Last Updated January 01, 2018 15:07 PM

In Drupal 8, maybe since 8.0 or maybe it was changed along the way, the file/image widget lacks the correct behavior of #limit_validation_errors and in case a required field in the form is not filled and user tries to upload file/image an error will be shown since the file widget's ajax does not limit the errors only to the field itself.

Is there some easy fix for this?

Tags : 8 forms fields


Related Questions





Error before executing the submit handler

Updated June 13, 2016 08:03 AM