Skip Navigation

[Gelöst] Saving cred form submissions to a database

This support ticket is created vor 4 Jahren, 12 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/Hong_Kong (GMT+08:00)

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

Zuletzt aktualisiert von AustinB6251 vor 4 Jahren, 11 Monaten.

Assistiert von: Luo Yang.

Author
Artikel
#1401189

-- Tell us what you are trying to do?
I want to know if there is any way for toolset to save a record of a cred form submission. In this case this website is going to work as a competition platform, and each time a user submits a cred form - it will count as one entry.

So I want to be able to either save a record of these updates, or just be able to see how many times each user updated a post type with a cred form.

Is this something that is either built into Toolset, or is possible to setup with an extension?

-- Is there any documentation that you are following?
I couldn't find any related support tickets.

-- Is there a similar example that we can see?
Ultimately the closest example would be the way most contact form plugins have the ability to save to a database, which can then be exported.

Alternatively being able to use zapier or similar and connect to Google sheets would also be great.

-- What is the link to your site?
versteckter Link

#1401349

Hello,

There isn't such kind of built-in feature, and it is possible with custom codes.

For example, you can try these:
1) Create a custom user field "my-count"
https://toolset.com/documentation/user-guides/user-fields/

2) After user submit the Toolset post form, use action hook cred_save_data to trigger a PHP function, in this PHP function, update the user field "my-count" field value + 1

More help:
https://toolset.com/documentation/programmer-reference/cred-api/
https://developer.wordpress.org/reference/functions/update_user_meta/
https://developer.wordpress.org/reference/functions/get_user_meta/
https://developer.wordpress.org/reference/functions/get_current_user_id/

#1402455

My issue is resolved now. Thank you!