Extract Specific Value from Gravity Forms Field

Gravity Forms Released
May 09, 2025 04:25:45
AirBelV2
Topics: 5
Messages: 19
Hello E2Pdf Support Team,

I hope you’re doing well. I’m using your plugin to generate PDFs from Gravity Forms entries. One of my form fields (input_19) contains a complex JSON string with all the trip information (MFRef, passengers, itineraries, fares, etc.). By default, E2Pdf outputs the entire JSON block, but I’d like to extract and display only one specific value—for example, the MFRef or the first passenger’s first name—rather than the full JSON.

Here’s a representative snippet of the raw value stored in input_19:

[private]

Could you please advise how to configure E2Pdf to output only the MFRef (or, for example, the PassengerFirstName of the first PassengerInfos element) in the PDF?

Thank you in advance for your help and any configuration examples you can provide.

Best regards,
May 09, 2025 05:17:11
E2Pdf
Topics: 7
Messages: 3614
Support
Hello,

Unfortunately, E2Pdf does not currently support extracting values directly from JSON strings. However, we have added this feature to our request list, and it is expected to be included in the RC version update next week. We will notify you as soon as the update is available.

We would really appreciate your feedback at WordPress.org!
May 09, 2025 05:38:56
AirBelV2
Topics: 5
Messages: 19
Hello,

thank you very much for your quick response. So this feature will definitely be available next week?

If that’s the case, I’ll wait for your update.

Thanks again for your responsiveness!
May 12, 2025 02:12:13
E2Pdf
Topics: 7
Messages: 3614
Support
Hello,

We have released an RC version update (1.29.05) that should enable working with JSON values. To update the plugin to the RC version, please follow the steps outlined here: https://e2pdf.com/docs/install#rc-version

After the update, you can use the following construction:

[e2pdf-format-output path="Data.TripDetailsResult.TravelItinerary.PassengerInfos.0.Passenger.PaxName.PassengerFirstName"]{Untitled:19:json}[/e2pdf-format-output]

Please note: Instead of using the default field slug {Untitled:19}, you should use it with the :json modifier, as shown: {Untitled:19:json}

We would really appreciate your feedback at WordPress.org!
May 17, 2025 14:53:22
AirBelV2
Topics: 5
Messages: 19
Hi,

Thank you so much for adding this so quickly! Your responsiveness is truly impressive and has made our Gravity Forms integration work significantly easier.

This feature was essential for us, and seeing it available in just a few days is simply incredible.

Thanks again for your excellent support <3
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.