- πΊπΈUnited States sidgrafix
+1 (used patch #15) Drupal 10.3.2 and inline_entity_form 8.x-1.0-rc17
Saved me after days of trying to get a field that should NOT be required when the field is part of a media entity using the inline entity form as an option on the content type edit/add form. Specifically when media entity type reference field "video" is used if a video wasn't uploaded a name shouldn't be required. Which cause other issues (as a workaround even tried) including a name when no video file was uploaded which then caused the media entity to be created and it shouldn't have been.
...Frustrating to say the least and the cause of a wicked headache until I finally realized inline_entity_form was causing the overall issue and finally stumbled onto this thread.
(but this is definitely needed) - thought I was going to have to dive into declaring an inline entity form controller for media to get it to work right after having tried every conceivable hook and callback to try and alter the fields #required state to FALSE (almost went with disabling default validation) for the entire node form on submit and validate it all in a callback - so glad I found this instead!Also tried inline_media_form but that made things worse plus had to download it and add drupal 10 in it's info file just to try it.