-- 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?
hidden link
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/
My issue is resolved now. Thank you!