-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
Required fields still not working #7036
Comments
I see you've linked my support topic which has a screencast showing the issue. Let me know if I can provide any more info. |
Just in case that can help, I posted in the plugin WordPress forum my temporary solution to have validation for required pods fields. I wish is useful to you. Thanks for the plugin :) |
Working on pushing this forward in #7343 |
Any progress on this? |
@Paktas This is in the hands of a developer I've brought in to help us work past some issues I've seen with stability of the required logic on the Block Editor screen. The solution I had previously wouldn't stop submission in all cases. |
Validation seems such a basic functionality. |
We've been trying to resolve a longstanding issue with Gutenberg here and ACF is doing the workaround through a JS override that can break other integrations. The good news is that it appears a new version of Gutenberg has support for what we need but it's still marked as experimental. We are working on testing a solution that uses an ACF-like JS override on the submit process but our goal with this will always be to remain compatible with as many plugins as possible (and compatible with ACF) while ensuring every pathway towards saving results in validation checks. |
Can you link to Gutenberg experimental feature? |
@Paktas ACF currently has a similar solution ( This issue wasn't with validation itself, that was working just fine. It's just not (yet) possible to properly prevent the block editor from saving since it ignores your own validation process. The currently available Link to the issue on Gutenberg repo WordPress/gutenberg#58022 |
@Paktas If possible, could you please take the time and let us know your test results on my PR? User feedback is very helpful to validate additions like these work as expected. Direct link to the branch: https://github.com/pods-framework/pods/tree/feature/7343-form-validation |
Hi @JoryHogeveen,
Required Fields:
test 1: Submit with empty required fields ✔️ All empty required fiels has been detected and errors are visible both on top of the page and on the single field. test 2: Submit with filled required fields ❌ WYSIWYG field has been detected empty. test 3: Submit with filled required fields - WYSIWYG with source tab active ✔️ Validation fully passed. test 4: Required fields are filled - delete all contents and submit ❌ WYSIWYG content deletion has not been detected before the Submit. test 5: Required fields are filled - delete WYSIWYG content and submit ❌ WYSIWYG content deletion has not been detected before the Submit. The page appears to be saved correctly. |
This sounds like it's still an improvement and we're on the right track. While we could merge this and deploy it, I am worried that the results at the bottom could spell confusion and data loss for some folks who would otherwise not be aware. Better to keep this open and work on those fixes next to complete it. |
Hi @sc0ttkclark and @JoryHogeveen, With Gutenberg disabled the custom fields are not displayed at all, required or not. |
Description
I know for sure this has been reported on several occasions and we've addressed this more than once.
For some reason the required option still isn't working properly and this gets reported again:
Due to the nature of this bug I really think we need to check this thoroughly and implement a proper fix.
Version
2.8+
The text was updated successfully, but these errors were encountered: