Tell us what you are trying to do?
Creating custom post with gravity form submission that creates a custom post that is setup by toolset. I am having issues with the checkbox fields not being transferred over to the toolset posts. I understand this is because gravity forms stores checkbox values differently.
Is there any documentation that you are following?
I've tried implementing the code from this post: https://toolset.com/forums/topic/gravity-forms-gf-custom-post-types-checkbox-mapping-defect/#post-334447, but am not having any luck.
What is the link to your site?
hidden link
Hello,
The ticket you mentioned above is outdated(10 years ago), it won't work as expected with the latest version of Toolset plugins + gravity form.
Can you consider creating the new post with Toolset Forms plugin, which is full compatible with custom fields created with Toolset Types plugin, see our document:
https://toolset.com/home/cred/
Hi! Thanks for pointing that out. So what I am using Gravity Forms for is to create a user registration and the users first post all in one form submission, so that's why I am not using the Toolset form in this case. Please advise!
In my opinion, you can setup a user form for creating new users, after user submit the user form, use action hook cred_save_data to trigger a custom PHP function:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data
In this PHP function, create the new post:
https://developer.wordpress.org/reference/functions/wp_insert_post/