Problem:
How can I update some values of Custom Fields of a Child Post when submitting a CRED Form, with values of Fields stored in the Parent Post of the currently edited Post?
Solution:
You can use the CRED API and WordPress API for this.
It requires Custom Code.
An example is here:
https://toolset.com/forums/topic/get-parent-cpt-data-for-child-cpt-form/#post-427832
Relevant Documentation:
https://developer.wordpress.org/reference/functions/get_post/
https://developer.wordpress.org/reference/functions/update_post_meta/
https://developer.wordpress.org/reference/functions/get_post_meta/
https://toolset.com/documentation/user-guides/cred-api/#csd
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 |
---|---|---|---|---|---|---|
- | - | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)
This topic contains 7 replies, has 2 voices.
Last updated by virageguitars 8 years, 1 month ago.
Assisted by: Beda.