validate does not respect form alter

Created on 30 May 2019, over 5 years ago

When you have field configured to use require on publish and then you hide field via form alter for example via #access=FALSE this field is still considered as empty and throw an error on the hidden (for user) field.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡ΏCzech Republic mkolar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States Katy Jockelson

    I'm having a similar issue - not using hook form alter but using multiple form modes on a content type. When you are using a version of the form, which does not have the fields which are marked as 'ROP', I would not expect the validation to run on those fields, but it is. Any ideas how to avoid this?

Production build 0.71.5 2024