Problem: I would like to know details about any APIs or event hooks available when uploading images in Forms with or without the new Media Library integration. I would like to have a developer create a custom image manipulation system where the User can crop and zoom the image before the Form is submitted.
Solution: There is no JavaScript API for forms, unfortunately, so there isn't much to offer on the front-end. Since Media Library support was integrated, the older AJAX image upload system no longer works in Forms. So the only APIs available are the Forms PHP APIs like cred_form_validate, cred_save_data, cred_success_redirect, and so on. These are all server-side events, so the Form must be submitted to trigger them. See the link here for more information about those APIs.
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/cred-api/
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 |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 4 replies, has 2 voices.
Last updated by 5 years, 1 month ago.
Assisted by: Christian Cox.