Jump to content

Inputfield dependencies and visibility of fields


Juergen
 Share

Recommended Posts

Hello @all

I have discovered an issue with inputfield dependencies depending on the visibility settings of the field where the dependency takes care of.

The picture below shows the setting of the "parent" field.

Screenshot_8.jpg

If the "parent" field has presentation "not editable" or "hidden", the inputfield dependency for the other field which takes care of this field wouldnt work. If I change the presentation fe to "open" everything work as expected.

Is this a normal behaviour?

In my case I show or hide a field depending on the settings of this "parent" field. If the "parent" field has one of the two settings written above, the "child" field is always invisible.

Best regards

Link to comment
Share on other sites

Inputfield dependency selectors work by parsing the values of the html <input>'s and alike. If a field is not editable these are rendered at all. If you need visibility selectors to work with fields hidden/not editable use a hook after ProcessPageEdit::buildForm instead.

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...