Insert current date

Forminator Forms
March 31, 2025 01:28:25
IrinelMita
Topics: 1
Messages: 1
Hello,

I would like to add the date of completion to the PDF. I don't have in formualr the date or anything related to it.
Is there a code to bring the current date?
Also I would like to add a progressive number with a prefix, is it possible ? Ex Invoice-1112, Invoice-1113 etc
March 31, 2025 01:48:01
E2Pdf
Topics: 7
Messages: 3617
Support
Hello,

If it's necessary to output the date of the PDF generation, the shortcode can be used as follows:

[e2pdf-format-date format="Y-m-d"]now[/e2pdf-format-date]

If it's necessary to output the date the Forminator entry was created, the field slugs can be used as follows:

Submission Date (F d, Y) – {submission_date}
Submission Date (mm/dd/yyyy) – {submission_date_mdy}
Submission Date (dd/mm/yyyy) – {submission_date_dmy}
Submission Time (hh:mm:ss am/pm, timezone) – {submission_time}

https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#form-data

As for the progressive number, unfortunately, only the {submission_id} field slug or the [e2pdf-dataset] shortcode can currently be used. These are linked to the Entry ID number and increment across all forms.

If you need a local form-specific incremental number, unfortunately, E2Pdf and Forminator do not provide this functionality by default. Implementing it would require custom PHP coding to generate, retrieve, and store the incremental number in a hidden entry field upon submission.

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.