Custom image mapping using image URLs collected via gravity form

Gravity Forms
May 13, 2022 02:43:34
ramsu
Topics: 8
Messages: 14
Hi,

I have a multi page Gravity Form (hosted outside of wordpress), that submits data via GF REST API, and users upload multiple images via a custom image uploader (files are uploaded to Wordpress REST API /media endpoint)

The uploaded file names / URLs are then stored into hidden text fields in the gravity form.
e.g. input_12 = https://<wordpress-site>/wp-content/uploads/2022/05/photo1.jpg

Once the form is submitted, is it possible to have these images merged into the PDF?

Previously when we had a basic form using standard GF single file upload, we could map this to an image in the PDF like = {photo:11}
And if we had standard GF multi file upload, we could map using something like this (to grab first multi file)
[e2pdf-format-output explode_filter="array_filter,array_values" explode="," output="{0}"]{:2153},{:2156},{:2157}[/e2pdf-format-output]

Now that we instead have an image URL in a text input (like input_12), how can we map this as an image in the PDF template?
Would {:12} work?
Or do we need some custom mapping, perhaps using e2pdf-format-output, to format the output as an html img URL?

Thanks
May 13, 2022 06:04:51
E2Pdf
Topics: 7
Messages: 3617
Support
Hi,

{:12} mapped to "Image" object should just work without any issues.

We remain at your service.

We would really appreciate your feedback at WordPress.org!
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.