Problem:
The user would like to implement a duplicate form where he can customize some fields.
Solution:
This is possible with custom code. The idea is to create a new create event form, that will include "startdate", "enddate", and "submit" form fields, then hook into the submission and copy all other fields from the original event. You can check a similar case, that copies all fields, here https://toolset.com/forums/topic/front-end-user-duplicate-post-function/#post-281290
You can either hook into "cred_before_save_data" which happens before saving the new post or into "cred_save_data" which happens after saving the new post.
Relevant Documentation:
- https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-creating-content/
- https://toolset.com/documentation/programmer-reference/cred-api/#cred_before_save_data
- 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.
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: Africa/Casablanca (GMT+01:00)
This topic contains 2 replies, has 2 voices.
Last updated by 4 years, 7 months ago.
Assisted by: Jamal.