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

Validation of conditional fields #326

Open
foxacid opened this issue Jun 18, 2019 · 0 comments

Comments

Projects
1 participant
@foxacid
Copy link

commented Jun 18, 2019

I'm loving the conditional fields option introduced in 3.1.0, however I just ran into the following issue:

When setting a conditional field as required, it is being validated even when the condition for showing the field is not met. In effect this means that a hidden field that is required but not populated will throw an error on save.

The expected behaviour would be that the required option only takes effect when the when option is true.

I could imagine that this is not as trivial to set up as it sounds but it would very much improve panel usability.

@bastianallgeier bastianallgeier added this to Backlog in Roadmap Jul 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.