Navigation überspringen

[Gelöst] Converting CRED form input data to Proper Case

This support ticket is created vor 2 years, 10 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

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

Zuletzt aktualisiert von Minesh vor 2 years, 10 months.

Assistiert von: Minesh.

Author
Artikel
#2626317

Tell us what you are trying to do? Convert entered data to proper case for CRED form. In other words, regardless of whether user uses all small, all caps or something in between, the values should always be stored as "This Is The Data".

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#2626607

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

You can sue Toolset Form API hook:
- "cred_before_save_data":
=> https://toolset.com/documentation/programmer-reference/cred-api/#cred_before_save_data
OR
- "cred_save_data":
=> https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data

And use the PHP function ucwords() to convert all first character of all words to uppercase.
=> versteckter Link

#2627585

Thank you!