Adding multiple form states in field dependencies

Created on 13 January 2012, over 12 years ago
Updated 4 March 2024, 4 months ago

Hello,
I am creating field dependencies for the fields in the user registration page of my website, so that when someone registers and specifies a characteristic in his profile then some of the following fields become invisible, as they are not needed for this kind of profile.
The problem is that for the second kind of profiles these fields are set mandatory and when I create the field dependencies to make them invisible, then when "create account" is validated, it doesn't work and I got error messages that the mandatory fields needed to be filled, even though they were invisible for this profile.

It would be great if when creating a field dependency one could specify that the dependee could become invisible "and" optional, so far one can choose only one form state not a combination.

Do you think this could be possible to implement? or do you know another module that is complementary to conditional fields and is able to add this option?

Thank you

✨ Feature request
Status

Closed: works as designed

Version

3.0

Component

User interface

Created by

πŸ‡³πŸ‡±Netherlands drupalycious

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.

  • πŸ‡©πŸ‡ͺGermany diqidoq Berlin | Hamburg | New York | London | Paris

    regarding #2 ^^

    Apart from that: Thanks for the report and all the efforts in here. But due to inactivity in this issue for some years and because of the upcoming EOL of Drupal 7, I will close this issue on the way by cleaning up the issue queue.

    Feel free to re-open as "Needs review" if you found a solution or have a patch to be reported to help others on this outdated version.

    If you think this issue or missing feature should be addressed in a newer Drupal core 8 and above compatible version of this project, then please file a new issue to the latest dev.

Production build 0.69.0 2024