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

Advanced File Uploader 2.0 'Required' still enforced even if conditionally hidden #3661

Open
dfrieling opened this issue Dec 21, 2020 · 0 comments

Comments

@dfrieling
Copy link

Do You Need Immediate Help?

no

Is This A Feature Request?

no

What Version Of Caldera Forms, WordPress and PHP Are You Using?

WordPress Version: 5.5.3PHP Version: 7.4.13MySQL Version: 8.0.20Caldera Forms Version: 1.9.3WP_DEBUG: 1

Does Your Issue Persist When You Disable All Other Plugins and Switch To The Default Theme?

yes

What Is The Unexpected Behaviour?

following scenario:

  • In a form there is a Advanced File Uploader 2.0 field that gets hidden / visible conditionally, triggered by a drop-down in the same form
  • the Advanced File Uploader 2.0 field is set to required

the problem:

  • if the uploader fields is hidden it's still validated and the required constraint is not fulfilled. I.e. you can't see the field but it's still complaining about being required and missing a user input
  • note: with regular File upload fields this misbehavior doesn't happen

What PHP Errors Have You Logged While Reproducing This Bug?

none

What JavaScript Errors Have You Seen While Reproducing This Bug?

none

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