Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In d7 core profile, i create 2 fields: a "interested in whitepapers" checkbox, and an "address" textfield. I set the whitepapers checkbox as the dependent and the address textfield as a dependee, and configure address to become a required field IF the whitepaper is checked.
This rule is never enforced.
In the edit user profile page of a registered user, it is possible to save the form with "whitepaper" checked and the "address" field empty. It also doesn't work on the registration page, but that is not as important for now.
Comments
Comment #1
pthanos CreditAttribution: pthanos commentedComment #2
pthanos CreditAttribution: pthanos commentedNo replies? Is this really something others are seeing or is it just me. I simply failed to get the value I needed from conditional fields, can somebody give a hand?
Comment #3
Stephen OllmanI am also getting this issue and am using the latest version.
Would be nice to have it fixed as its a big feature of this module.
Tops marks for the work done so far.
Comment #4
arosboro CreditAttribution: arosboro commentedI spent a few hours and created a patch in #1561272: Conditionally required fields are not required #8
Comment #5
koppie CreditAttribution: koppie commentedI'm marking this task as a duplicate of #1561272: Conditionally required fields are not required even though this task is older, because that one has a patch posted (thanks @arosboro!).