Replace checkbox value

Gravity Forms Released
June 26, 2025 16:50:30
ramsu
Topics: 8
Messages: 14
Hi Team,
Using Gravity Forms we have a checkbox that users can multi select options.
For basic template mapping, we can display this field by mapping this value as = {:2324}
And in the PDF this is automatically displayed with a comma separated list of checked options like: Broken, Corroded

Now in our form we have added an "Other" option to the 2324 checkbox field, and a new text field 2325 as an other text input.
What we would like to do in the PDF, is if user has checked 'Other' option in 2324, and entered text in 2325, then replace the Other text in PDF with what the user entered in 2325.
e.g. instead of showing this in PDF: "Broken, Corroded, Other"
Show this instead (user entered 'Cracked' in 2325): "Broken, Corroded, Cracked"

I tried different actions and conditions in the mapping in template, but could not get the desired result.
The closest I got working was to append the 2325 field, with an action like this:
Action = Change Property
Property = Value
Value = : {:2325}
Format = Insert After
IF = {:2325} != (nothing)

And this works by displaying this in PDF: Broken, Corroded, Other: Cracked

Ideally we want: Broken, Corroded, Cracked

I tried an action of changing property value with format search and replace, but could not get that to work.

Any tips of the correct action and formatting to use to achieve this?
Thanks
June 27, 2025 01:55:30
E2Pdf
Topics: 7
Messages: 3614
Support
Hello,

Unfortunately, the Search/Replace function currently works with pre-rendered values only. We will consider extending it to support post-rendered values in the future.

In the meantime, you should be able to use the fully replaced value directly:

[e2pdf-format-output search="Other" replace="{:2325}"]{:2324}[/e2pdf-format-output]

Please see the attached screenshot for reference.


We would really appreciate your feedback at WordPress.org!
July 01, 2025 03:45:19
E2Pdf
Topics: 7
Messages: 3614
Support
Hello,

Just a quick note - we’ve just released an update to the latest RC version (1.29.16): https://e2pdf.com/docs/install#rc-version. This update includes the ability to change the values in the rendered output.

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.