Sequential order number divi form for pdf

Divi Forms
30 November, 2020 00:04:59
Hobnil
Topics: 1
Messages: 9
Hi,

I am very happy with this Plugin, I have managed to solve my problem by 90%. However, there is a detail that I cannot get.

Basically I want my PDF documents to function as an invoice. Therefore, I would like to put a dynamic number that changes with each form that is completed.

Basically it would be putting in a 6 digit custom order number that is updated sequentially every time you submit a form. For example:

140001, 140002, 140003… and so on for each PDF document

I leave you a screenshot with an example to better clarify the idea.

I remain pending your answer.

Best regards!
30 November, 2020 06:38:22
E2Pdf
Support
Topics: 7
Messages: 3330
Hi,

You must be able to use:

%%e2pdf_entry_id%%

It will output saved Entry ID, however if you need to calculate it from 14000, you can update it with "filter" added to your child theme functions.php

Code that must be added: https://codeshare.io/5QwlyR

$divi_template_id and $divi_element_id must be replaced with yours values according to screenshot.

We remain at your service.


We would really appreciate your feedback at WordPress.org!
30 November, 2020 20:53:18
Hobnil
Topics: 1
Messages: 9

Hi,

Thanks for your quick response.

Indeed, I need to calculate it from 14000, but I am not sure in which file and in which line I should place this code.
Can you tell me exactly where to put it?

Sorry, but my code knowledge is very basic but an explanatory tutorial can be very helpful.
I remain pending.

Thank you.
1 December, 2020 06:49:20
E2Pdf
Support
Topics: 7
Messages: 3330
Hi,

You can follow the other way by adding filter to avoid it's overwriting as it could be that you didn't setup child theme.

1. You will need to install "Code Snippet" plugin if you do not have one (Screenshot 1)
2. Add new snippet and copy code from https://codeshare.io/5QwlyR to it (Screenshot 2), with replacing "64" and "7" to your values (screenshot 3).
3. Save snippet

We remain at your service.
We would really appreciate your feedback at WordPress.org!
2 December, 2020 21:29:40
E2Pdf
Support
Topics: 7
Messages: 3330
Yes, it must not be issues, however there are couple of notes:

1. You must use another code to have possibility to use just one filter with adding needed template ids and field ids as follow:

http://collabedit.com/qca7c

It will replace value in Template ID 64 on Element ID 7 and in Template ID 66 on 2 element IDs 8 and 9

You must replace old code and update it to your needs, keep attention on "commas" after "]" if it's not last Template ID line.

2. Filters uses Entry IDs which stored in same table for all forms so if you will create another form with another template, the number calculation will continue from last number that was generated for other form. For example: If in first form was last submission with invoice generated 14566, on 2nd form after this submission invoice ill be 14567.

We remain at your service.

We would really appreciate your feedback at WordPress.org!
2 December, 2020 22:08:31
Hobnil
Topics: 1
Messages: 9
Great, I think with this I can solve.

Best regards
2 December, 2020 22:43:41
Hobnil
Topics: 1
Messages: 9
Hello. Excuse me again.

In the above code you only had to change 2 values the ID of the template and the element.

In this last code I must change 5 values.

The 3 values in the row below, which should I substitute them for?

Another thing,

It's not better to use the first code for different templates keeping in mind that I have to change the template id and element values for each of them.

For example:

Template 1: 14000
Template 2: 15000
Template 3: 16000

Excuse my English, it is not my native language.

Thank you.
3 December, 2020 06:17:38
E2Pdf
Support
Topics: 7
Messages: 3330
You can use the first code example. It's simpler if you do not have coding skills, however keep in mind please that it must be different function name for each function added (see screenshot):

http://collabedit.com/me7t8

We remain at your service.
We would really appreciate your feedback at WordPress.org!
3 December, 2020 23:04:05
Hobnil
Topics: 1
Messages: 9
Great with this I think I have it!

One more question. Does this plugin work with "Gravity form"?

I tell you, I have used the DIVI contact form, but I have problems auto-completing the addresses in the fields. I only need to autocomplete the ZIP field but I can't do it ... Can you help me with this? How much would this job cost?

In case of power, this is what I'm looking for. Autocomplete should work the same as "Gravity Form": https://gravityformsaddressautocomplete.com/

In fact, I prefer to use "Gravity Form" if you confirm that your plugin is compatible with it.

I will appreciate your help.

I am attaching a screenshot of the form I am creating.

Best regards!
4 December, 2020 00:09:46
PRO2PDF
Support
Topics: 2
Messages: 69
Yes, E2Pdf has an extension for Gravity Forms, it's available for use in the free and paid versions.


We remain at your service.
We would really appreciate your feedback at WordPress.org!
5 December, 2020 21:55:40
Hobnil
Topics: 1
Messages: 9
Hello,

I am using "Gravity Form" with E2Pdf because it perfectly solves all the fields I need. I had to do without the “DIVI Contact Form” because it had certain limitations and I had to change all the work.

But I have some doubts:

1. Do you have documentation for “Gravity Form” with E2Pdf? I have not found any video to be able to do the setup and display the labels on the printed .pdf form.

2. In short, I will need 4 forms with "Gravity Form and E2Pdf". Can I use the last code you provided to resolve the correlative codes of each form in the PDF documents?

For example:
Template 1= 13000
Template 2= 15000
Template 3= 16000
Template 4= 16000

I attach you a screenshot of the form that I got with "Gravity Form and E2Pdf"

Thank you very much for your service.

Best regard!
6 December, 2020 07:07:47
E2Pdf
Support
Topics: 7
Messages: 3330
Hi,

1. E2Pdf uses standard shortcodes that is used by form by default, so it's need to check Gravity Forms documentation:

https://docs.gravityforms.com/field-merge-tags/#modifiers

If you are using "separate" values for checkbox, radio, or dropdown you must be able to use field value as:

{Field:5:value}

2. You can use the previous code solution with the field value set to {entry_id}. However if you need to use separate sequential order, you can try to use some 3rd party plugins as https://gravitywiz.com/documentation/gravity-forms-unique-id/

We remain at your service.


We would really appreciate your feedback at WordPress.org!
22 December, 2020 18:31:48
Hobnil
Topics: 1
Messages: 9
Hello, (sorry my English)

Thanks a lot....I have managed to list each form submission with a sequential code.

However now I want to print the "Gravity Form" in "E2Pdf"

I can't find an explanatory video to connect both plugins and get this process.

I understood this very well with the tutorial you have for divi form, but I can't understand it for "Gravity Form" because I don't see any tutorial.

What should I do in "Gravity Form" to convert the information into pdf using "E2Pdf"?

Best regards.

Note: I attach a screenshot of the form created with E2Pdf.
23 December, 2020 07:44:34
E2Pdf
Support
Topics: 7
Messages: 3330
Hi,

If you mean how to output PDF download link, the process is the same, you must add [e2pdf-download] or [e2pdf-view] shortcode to "Success Message" which can be found at "Settings" -> "Confirmation". (Screenshot 1) or inside mail body which is located under "Settings" -> "Notifications". Mail body also can accept [e2pdf-attachment] shortcode. (Screenshot 2)

Item also must be set to correct form and must be activated under "Options" settings while E2Pdf Template Edit (screenshot 3).

We remain at your service.
We would really appreciate your feedback at WordPress.org!
23 December, 2020 21:46:30
Hobnil
Topics: 1
Messages: 9
Everything perfect, thank you very much for your great service.