Problem:
Automatically selecting the post to add a RFG to, in front-end form
Solution:
you can use the Toolset Form's hook "cred_save_data" and to set/connect the parent post, you can use the post-relationship API function: toolset_connect_posts()
You can find the proposed solution in this case with the following reply:
=> https://toolset.com/forums/topic/automatically-selecting-the-post-to-add-a-rfg-to-in-front-end-form/#post-1784371
Relevant Documentation:
=> https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_connect_posts
=> https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
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 | - |
Supporter timezone: Asia/Kolkata (GMT+05:30)
This topic contains 2 replies, has 2 voices.
Last updated by rotimiA 3 years, 7 months ago.
Assisted by: Minesh.