- First commit to issue fork.
- 🇮🇳India arunkumark Coimbatore
Am also facing the same problem when using the Conditional fields with the User account form. After some debugging, I found the reason the Roles, Name, and Email fields are part of the field parent
account
associate array coming from the core.Remaining task:
The patch still needs some work to populate the selected value and testing. - Status changed to Needs work
over 1 year ago 3:59am 20 February 2023 - @arunkumark opened merge request.
- 🇺🇸United States w01f
Testing patch - widget now correctly shows fields, but the values aren't retained when hitting save.
Example - set Roles as dependency
1. Select a few roles in the widget
2. Hit save
3. Edit the same condition
4. Previously selected roles are still unchecked - 🇩🇰Denmark erik_petra
I'm changing this to Major, as it affects core functionality.
The workaround I had to do was to create a new role placeholder field as entity reference to roles, hide the original field, and fill the original one in the form submit hook. Presave could work too.
Then I used the new role placeholder field with conditional logic to make things work.