Insert current date

Forminator Forms
31 March, 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
31 March, 2025 01:48:01
E2Pdf
Support
Topics: 7
Messages: 3448
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!