Navigation überspringen

[Gelöst] Customizing the CRED form top error message

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:

The problem here is that the user wanted to remove the custom field names from the field error messages in our Toolset Forms.

Solution:

Unfortunately this isn't possible because the fields are bound messages.

This support ticket is created vor 4 years, 7 months. 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Zeitzone des Unterstützers: America/Jamaica (GMT-05:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Saul Baizman vor 4 years, 7 months.

Assistiert von: Shane.

Author
Artikel
#2207563
screenshot 2021-10-27 at 18.21.23.png

Hi there,

I was wondering if it were possible to customize the CRED post form top error messages. I'm using the cred_form_validate hook to validate form fields in a custom manner and assign custom error messages. The error messages always display in this format:

Custom field name: custom error message.

I'd like to remove "Custom field name:" from the error message. Is that possible? The attached screenshot shows the error message currently, and I've underlined in red what I'd like to remove.

Thank you!

Saul

#2208271

Shane
Unterstützer

Sprachen: Englisch (English )

Zeitzone: America/Jamaica (GMT-05:00)

Hi Saul,

Thank you for getting in touch.

Unfortunately no you're not able to do this. The field name is bound to the error message.

Thanks,
Shane

#2208423

OK, thank you, Shane!