Sequential order number on pdf formidable forms

Formidable Forms
27 January, 2023 06:48:56
SDW10
Topics: 2
Messages: 6
Hi,
I would need a sequential number to be added in 2 e2pdf-templates.
I am using formidable forms and once a customer purchases something several templates are triggered to send pdfs. For each purchase a sequential number should be added to 2 templates (same number).
Can you help please?
many thanks!
27 January, 2023 08:15:11
E2Pdf
Support
Topics: 7
Messages: 3330
Hi,

You can use [id] of entry inside E2Pdf Template or you can create a "Hidden" field inside Formidable Forms form with default value as: [auto_id start=1]: https://formidableforms.com/knowledgebase/using-dynamic-default-values-in-fields/#kb-automatically-increment-an-id

We remain at your service.
We would really appreciate your feedback at WordPress.org!
27 January, 2023 08:20:40
SDW10
Topics: 2
Messages: 6
Hi,
yes, I was working with that. problem is, whenever a purchase is not finished or cancelled this unique number is deleted or blocked. My customer requires these sequential numbers not to be skipped.
I am looking therefore for something similar you posted some time ago...topic was "Sequential order number divi form for pdf" (29 November, 2020 16:04:59). I would need something similar...
Thanks!
27 January, 2023 08:56:18
E2Pdf
Support
Topics: 7
Messages: 3330
If the [auto_id start=1] doesn't fit your needs, then you need to use Formidable Forms PHP hooks to create/modify hidden field value on submission, for example: https://formidableforms.com/knowledgebase/frm_validate_field_entry/#kb-change-the-value-in-a-field.

Unfortunately, we do not have a PHP snippet, however, you will need to get the latest entry hidden saved incremental value and set it +1 at the moment of submission.
We would really appreciate your feedback at WordPress.org!
27 January, 2023 09:49:08
SDW10
Topics: 2
Messages: 6
Many thanks for hinting to a potential solution...