Populate a field with a number that increments +1 each time a form is completed.

Divi Forms Released
9 November, 2019 10:14:28
ionutsabo
Topics: 3
Messages: 8
Hi, great plugin, by the way.

I have a template pdf that's working just fine. I just wanted to find a way to add a number on the pdf that will increase by 1 each time the form is completed. It would work as the number of the document. It's an invoice that I would need it to show a number. Let's say we start the counting from 12, and then increase by 1 for each new client. is there a way to do this?

Thank you in advance.
9 November, 2019 11:12:17
E2Pdf
Support
Topics: 7
Messages: 3156
Hi, thank you.

Unfortunately, it's not possible at this moment for WordPress extension, as E2Pdf currently working only with prepared data. As a solution it can be created custom shortcode which will output needed data depending on your needs. It will require some coding to fit your needs.

More easier way can be solution to use forms plugins compatible with E2Pdf. For example, Formidable Forms will allow you to output Entry ID in PDF, which is increasing on each form submission.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
9 November, 2019 11:13:30
ionutsabo
Topics: 3
Messages: 8
Oh, so sorry,

I think I wrongly tagged the question under Wordpress.

I am using Divi contact forms.

Does this help?
9 November, 2019 11:24:09
ionutsabo
Topics: 3
Messages: 8
Actually the current dataset number would be ideal to have filled in on the pdfs. Is that possible?
10 November, 2019 00:31:44
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

Unfortunately it's not supported in current version for Divi extension as it doesn't save entries by default and it's done by E2Pdf. Entry ID output and Referer will be available withing next update. If you do not want to wait, please download updated extension in attachment.

To update it on your website:
1. Unzip file
2. Upload it and replace "e2pdf-divi.php" via FTP at /wp-content/plugins/e2pdf/classes/extension/

It will be available 2 new shortcodes:

%%_wp_http_referer%% - will output referer which must solve issue with detecting on which page form was submitted.

%%e2pdf_entry_id%% - will output Entry ID that is used for PDF generation

We remain at your service.
We would really appreciate your feedback at WordPress.org!