Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Dependency support to validate from other complex fields #13

Open
theperfectwill opened this issue Aug 13, 2018 · 0 comments

Comments

@theperfectwill
Copy link

Hi!

So I've tried working around this several times, but I've decided for now to just forego that dependency need for the sake of keeping the complex grouping.

The issue is that ->add_dependency() does not work when trying to validate TRUE from a field within a different complex.

So in short here is how my field workflow is flowing...

Tab
Layout Control
> Complex
> > Fields.

This way if a dev or myself calls or needs the container of that tab they can load all the relative fields concerning that tab in one call.

But I would like some tabs to only show based on a value from a different tab, which in this case would be a different complex group as well. But herein lies the issue, is dependency support will NOT go up a complex group, then down into another, which is what I think needs to happen for this to work, as to why it doesn't work?

Example, in the screenshot below, I ONLY want the Header, Body and Footer tabs to show IF, The Layout Tab option Custom Layout is selected. This won't work because that field is contained within the complex group layout and the fields of the other tabs are contained within their own complex groups.

(Hope that makes sense! Let me know. Thanks! APPRECIATE IT!)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant