Skip Navigation

[Resolved] When required field is empty, content can still be saved without error or notice

This thread is resolved. Here is a description of the problem and solution.

Problem:
The user was still able to save new posts even if the required fields were not entered.

Solution:
We have found the cause of the issue and produced a patch that you can apply on your website. Please download the following zip https://toolset.com/patches/validation.js.zip
Then extract the file "validation.js" file to "types/vendor/toolset/toolset-common/toolset-forms/js/"

You will need to purge the browser cache to make sure it will use this patched file.

If this patch did not land on the next release, you will need to apply it again, manually.

This support ticket is created 3 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 21 replies, has 3 voices.

Last updated by wimD-2 3 years ago.

Assisted by: Jamal.

Author
Posts
#2217529

Hi Jamal

I've changed the permissions. You should be able to do all you need to do. Thank you for looking into it!

Best regards,
Wim

#2218413

Thank you Wim, I built a copy locally and worked on it. I was not able to find out the cause of the issue. Let me escalate the copy to our 2nd Tier team for further analysis and get back to you as soon as possible.

#2228061

Our 2nd Tier team is still working on this issue, but we was able to find a workaround to make the validation works. The workaround consists of 3 options:
- Enable the content option on the custom post type.
- Enable the Blocks editor on the custom post type.
- Move the Post Reference field "Koppeling met traject" from the top of the fields group as shown here hidden link

Please let me know if that's a viable solution for you, or if you prefer to use the classic editor?

#2228753

Thank you for your help so far! Much appreciated!

I'm unable to see the the print screen. I've tried to open it in different browsers, but the result is the same everywhere: a white screen with text on the left side of the screen, but no images or page layout loading.

I think it might be confusing for my customer to suddenly have the blocks editor there, but I'll give it a try nevertheless.

Best regards & thanks,
Wim

#2228781
move-post-reference-field.png

I uploaded the image and attached here. Yes, please, let me know if switching to the blocks editor suits your client. I'll set this ticket as waiting for your reply, which will keep it open for a couple of weeks. You will receive a couple of email notifications before it gets closed.

#2238049

Hello Wim! Our 2nd Tier team has found the cause of the issue and produced a patch that you can apply on your website. Please download the following zip https://toolset.com/patches/validation.js.zip
Then extract the file "validation.js" file to "types/vendor/toolset/toolset-common/toolset-forms/js/"

You will need to purge the browser cache to make sure it will use this patched file.

If this patch did not land on the next release, you will need to apply it again, manually.

#2238055

Great work, Toolset team! Thank you very much!