Boolean field with single on/off widget stays required even when user has no view/edit permission

Created on 23 February 2014, over 11 years ago
Updated 13 May 2024, about 1 year ago

On my registration page i have a custom field where anonymous users don't have view and edit permission.

However without seeing this field, upon saving the registration page the user gets a drupal message: ' 'my custom field is required'.

I have found this behaviour only when the field is a boulean type with a single on/off widget.
As soon as i take a different field or make it a radio button/checkbox widget type the user can save the registration page without the message.

Additional info:
I could make the field 'not required' by unchecking the checkbox on the fieldsetting however i need the field to be required on the user-edit page.

🐛 Bug report
Status

Downport

Version

1.0

Component

Code

Created by

🇳🇱Netherlands held69

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.

Production build 0.71.5 2024