Checkbox Always Returning Checked after submit or editing user form

Created on 29 July 2024, 9 months ago

Problem/Motivation

Context
Drupal Version: 10.3.0
Module Used: Conditional Fields
Entity: Fields added to the user entity

I have configured a checkbox field and a select list field with the values "active", "external", and "partner". A conditional field is set up to make the checkbox visible only if "partner" is selected.

Steps to reproduce

  1. Create a checkbox field.
  2. Create a select list field with values "active", "external", and "partner".
  3. Set a conditional field to display the checkbox only if "partner" is selected.
  4. Add these fields to the user entity.
  5. Uncheck the checkbox.
  6. Submit the form.
  7. Reload the form and observe that the checkbox is checked again.

Proposed resolution

The checkbox should remain unchecked when I uncheck it and submit the form.

Remaining tasks

The checkbox always returns checked when the form is displayed, even after unchecking it and submitting the form.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

4.0

Component

User interface

Created by

🇫🇷France bruno_nct

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

Comments & Activities

Production build 0.71.5 2024