Skip Navigation

[Gelöst] Form validation does not list form errors on top

This support ticket is created vor 4 Jahren, 6 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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: Asia/Karachi (GMT+05:00)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Waqar vor 4 Jahren, 6 Monaten.

Assistiert von: Waqar.

Author
Artikel
#1622669
510583-form_error.png
listing form errors.JPG

In this post there was a bug posted that still after 3 years is not fixed: https://toolset.com/forums/topic/form-validation-messages-are-not-shown/

The forms do not list the error fields which is a huge problem, because marking fields as red is not enough (also I have hidden the messages that appear next to the fields cause I hate how they break the layout when they appear). There is a ":" in the error message though which also makes no sense if there is no list following afterwards.

What is a workaround to get this list of form errors in the form error message?

Another supporter stated in the linked thread that the correct behavior was active up until types version 2.2.8. Is to revert the only solution? So the Bug is prevalent for 3 years now or am I missing something here?

Quote: "I tested different permutations of the plugin versions, and it is actually the change from Types 2.2.8 to 2.2.9 which is responsible."

#1623877

Hi,

Thank you for contacting us and I'd be happy to assist.

As mentioned by Beda in the other thread ( ref: https://toolset.com/forums/topic/form-validation-messages-are-not-shown/#post-629698 ), it was a conscious decision to move the individual error messages in line with the fields and removing them from the top.

But I can understand your concern that these inline errors can be tricky to adjust when using a slim or complex field's layout.

There has been some internal discussion on making those errors available on the top again and I've added your concern to that as well.

I'll keep you updated with the progress on this through this ticket and for now, a workaround can be to use the "cred_form_validate" hook to add custom validation error messages on top for the individual fields:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate

regards,
Waqar