ChriWolf Posted August 25, 2016 Posted August 25, 2016 Hallo together, I find the possibility to show fields in the admin panel dependence on the value of an another field. Is there a possibility to do that with an or operator like this: link_type=1 || link_intern_content=1 ?? i searched a long time, but i don't find a solution thanks a lot
ChriWolf Posted August 25, 2016 Author Posted August 25, 2016 thanks for your replay, I tried this but it doesn't work. "link_type" or "link_intern_content" must have "1" to show the red marked fieldset.
Macrura Posted August 25, 2016 Posted August 25, 2016 Quote You may not yet specify OR conditions with "|" in the field or value like you can with regular selectors. Though support is planned. See https://processwire.com/api/selectors/inputfield-dependencies/#limitations 1
LostKobrakai Posted August 25, 2016 Posted August 25, 2016 @Macrura that's outdated info. I've implemented the pipe OR switches probably about a year ago. Only the OR groups are not supported in that regard. The issue here is that support for inputfield dependencies in repeater/matrix fields is still kinda experimantal. It can work, but often it doesn't. 2
Macrura Posted August 25, 2016 Posted August 25, 2016 wow, that's awesome, i can't imagine how many places i could have really used that in the past year...dude i gotta go back and revisit a lot of template editor setups if this is true... are you sure this works!
LostKobrakai Posted August 25, 2016 Posted August 25, 2016 It's even longer https://processwire.com/blog/posts/processwire-core-updates-2.5.24/#field-dependencies-upgrades
szabesz Posted August 26, 2016 Posted August 26, 2016 14 hours ago, LostKobrakai said: It's even longer https://processwire.com/blog/posts/processwire-core-updates-2.5.24/#field-dependencies-upgrades So you have updated the API docs, thanks! How about a cross link to the blog entry too?
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