Extract Specific Value from Gravity Forms Field

Gravity Forms Released
9 May, 2025 04:25:45
AirBelV2
Topics: 4
Messages: 16
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,
9 May, 2025 05:17:11
E2Pdf
Support
Topics: 7
Messages: 3466
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!
9 May, 2025 05:38:56
AirBelV2
Topics: 4
Messages: 16
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!
12 May, 2025 02:12:13
E2Pdf
Support
Topics: 7
Messages: 3466
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!
17 May, 2025 14:53:22
AirBelV2
Topics: 4
Messages: 16
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