Juergen Posted January 4, 2017 Share Posted January 4, 2017 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. 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 More sharing options...
LostKobrakai Posted January 4, 2017 Share Posted January 4, 2017 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. 2 Link to comment Share on other sites More sharing options...
Juergen Posted January 4, 2017 Author Share Posted January 4, 2017 Thanks for the answere. I have solved the problem with jquery in my adminscript.js to hide the parent and use the setting "open". Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now