Capitalise created pdf

7 February, 2024 08:06:11
Topics: 4
Messages: 19
Hi , is there a way to capitalise all form input when creation a pdf ?
7 February, 2024 08:07:05
Topics: 4
Messages: 19
this is created with forminator forms
7 February, 2024 08:34:23
E2Pdf
Support
Topics: 7
Messages: 3345
Hello,

Can you please clarify, if you need to capitalize just ALL entry data from Forminator Forms? Or there must be capitalized any value placed inside the E2Pdf Template?
We would really appreciate your feedback at WordPress.org!
7 February, 2024 08:58:31
Topics: 4
Messages: 19
hi , all entry data, entred by the user in the elementor form, field titles and such can stay the same
7 February, 2024 08:59:01
Topics: 4
Messages: 19
the forminator for i mean sorry
7 February, 2024 09:51:11
E2Pdf
Support
Topics: 7
Messages: 3345
Unfortunately, Forminator doesn't have a separate custom hook to modify just the field slug output and we didn't extend it, so currently the options are:

1. Use PHP filter: https://codefile.io/f/leVBu30kmf added to your theme functions.php, change the template id to yours is required. However, it will update all values in the PDF, including labels.

P.S. Keep attention please that it can be required to modify Checkbox / Radio Options to uppercase also inside the E2Pdf Template.

2. Or, modify E2Pdf Template values that must be capitalized to:

[e2pdf-format-output filter="strtoupper"]{text-1}[/e2pdf-format-output]

If neither of the solutions can work for you - we will review the possibility of adding a custom hook directly to the Forminator data passed to PDF till the end of the week.
We would really appreciate your feedback at WordPress.org!
8 February, 2024 01:15:52
Topics: 4
Messages: 19
yeah a custom hook seems the way to go, because i have at least 5 forms with 50fields per form and i'll go up to 10 i think in the next few months , so doing each field manually would take a very long time
8 February, 2024 05:03:50
E2Pdf
Support
Topics: 7
Messages: 3345
Hello,

We just released an update to E2Pdf 1.22.10 with an additional filter that allows modifying Forminator Data before rendering in PDF via the filter. You can update the plugin by following the steps here: https://e2pdf.com/docs/install#rc-version.

We highly recommend completing a BACKUP of the website and DB before applying the update as it has some major changes.

After the update, it must be added a filter to your theme functions.php or as a PHP snippet: https://codefile.io/f/CWyuYbM0P2.

You will need to modify it by changing the $templates array on which it must be applied.

P.S. Keep in mind please that the "checkbox" / "radio" and "select" will require a manual change of the "Options" property inside the E2Pdf Template.
We would really appreciate your feedback at WordPress.org!