Hello,

Thank you for this very helpful module.

I would like to have the following behaviour but if this is supported, I didn't manage to configure in this way so far :

The condition would be a value ((OR) any of X checkbox values set)

In the edit context form, i would like that the dependent field is always visible

In the view context, i would like that the dependent is invisible if the dependee has any of the value set under the condition.

Can you tell me if this is supported and missing something ? thanks

Comments

bendev’s picture

Status: Active » Closed (works as designed)

well, I finally found how to do this:

- in edit context settings :
form state: unchanged

-in view context
select the box
"Hide the dependent if the dependency is not triggered "

then I just had to revert my conditions values to match the expected behaviour.
I didn't get it directly because I was looking for the opposite :
"Show the dependent only if the dependency is triggered "

hope it helps others

bendev’s picture

Status: Closed (works as designed) » Active

I would like to reopen the discussion because the form state: unchanged
in edit context settings doesn't fully solve the issue.

The field stays visible but I can't modify its value when the form state is "unchanged"

I would like a setting for the "form state" in edit context that is "editable" whatever the condition...
Indeed, the objective of the condition in my case is only to control the view settings, not the edit settings

Thanks for any suggestion

dqd’s picture

Category: Feature request » Support request
Issue summary: View changes
Status: Active » Closed (outdated)

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. Thanks for understanding.