Fetch selected values from gravity form

Gravity Forms
8 August, 2022 09:05:28
umair.khan2313
Topics: 5
Messages: 56
Hi,
I wanna get values in my e2pdf form in small boxes i.e.
Date: 08/08/2022
I want 0 8 0 8 2 0 2 2 all single values separately,
Attaching screenshot for better understanding.
Immediate response will be appreciated.
Thanks.
8 August, 2022 09:38:30
E2Pdf
Support
Topics: 7
Messages: 3335
Hi,

"Boxes" can be set via "Comb" and "Length" field settings. See please screenshots attached.

Keep in mind please that if you need separate "day", "month", "year" - you will need to design "Value" to output just needed value, for example with [e2pdf-format-output] shortcode.

If you have output as 08/08/2022

[e2pdf-format-output explode="/" output="{0}"]{Date:1}[/e2pdf-format-output] - will output day (08)
[e2pdf-format-output explode="/" output="{1}"]{Date:1}[/e2pdf-format-output] - will output month (08)
[e2pdf-format-output explode="/" output="{2}"]{Date:1}[/e2pdf-format-output] - will output year (2022)

We remain at your service.
We would really appreciate your feedback at WordPress.org!
8 August, 2022 09:39:59
E2Pdf
Support
Topics: 7
Messages: 3335
The result will look like below:
We would really appreciate your feedback at WordPress.org!
9 August, 2022 08:55:25
umair.khan2313
Topics: 5
Messages: 56
How can i give spaces in between boxes?
9 August, 2022 09:07:47
umair.khan2313
Topics: 5
Messages: 56
And one thing i want to convert month in alphabets like 08=august
9 August, 2022 10:01:54
E2Pdf
Support
Topics: 7
Messages: 3335
Hi,

Sorry, what do you mean by spaces? The "Comb" field will calculate the size of boxes automatically depending on the size "Length" setting. If "Length" is set to 4, the field will be split into 4 boxes of the same size. If the "Length" setting will be 16 - it will split the field into 16 boxes. It can't be dynamic.

On the screenshot above, it is 3 separate fields and each field has its own "Length" and "Value". In values is used [e2pdf-format-output] shortcode wrapper which is splitting date to 3 separate values. Please, check the screenshots and explanation attached in the previous message.

As for format - unfortunately, Gravity Forms doesn't allow formatting with magic tags and output date with the month name but you can try to convert "month" via [e2pdf-format-date] shortcode and the final shortcode for the month will be:

[e2pdf-format-output explode="/" output="{1}"][e2pdf-format-date format="mm/F/yyyy"]{Date:1}[/e2pdf-format-date][/e2pdf-format-output]

It will output just "month" as "August" but keep in mind please that the names of the month have different sizes and "Length" can't be dynamic at this moment so you must set "Length" as the maximum month "Length".

* mm/F/yyyy will depend on which setting you have under the Gravity Forms field setting. "F" - will output "month" as a "name".

We remain at your service.

We would really appreciate your feedback at WordPress.org!
9 August, 2022 11:00:55
E2Pdf
Support
Topics: 7
Messages: 3335
We are confused on the first screenshot as we do not see day and month... Is it "checkbox"? or what is the type of field?

Can you please create "textarea" and map with field slug which must be converted to combination field, export PDF and attach screenshot which value you see in PDF in that "textarea"

On the 2nd screenshot it must be created 3 fields.

1st field "input" - "Comb" + Length 2
2nd field "input" - "Comb" + Length 2
3rd field "input" - "Comb" + Length 4

If the value in the 1st field will be 18 - it will output as 1 8
If the value in the 2nd field will be 11 - it will output as 1 1
If the value in the 3rd field will be 2006 - it will output as 2 0 0 6
We would really appreciate your feedback at WordPress.org!
9 August, 2022 11:17:52
E2Pdf
Support
Topics: 7
Messages: 3335
If the checkbox values exactly the same as " April 2016 – April 2017" then:

[e2pdf-format-output explode=" " output="{4}"]{Untitled:3}[/e2pdf-format-output] - 1st checkbox "Year"
[e2pdf-format-output explode=" " output="{9}"]{Untitled:3}[/e2pdf-format-output] - 2nd checkbox "Year"
[e2pdf-format-output explode=" " output="{14}"]{Untitled:3}[/e2pdf-format-output] - 3rd checkbox "Year"

and so on...

* Any next value in brackets output="{14}" must be +5.
** {Untitled:3} - Must be replaced with your "checkbox" field slug.
We would really appreciate your feedback at WordPress.org!
9 August, 2022 11:26:48
E2Pdf
Support
Topics: 7
Messages: 3335
April 2016 – April 2017 will be converted to 2017 by the following shortcodes:

[e2pdf-format-output explode=" " output="{4}"]{Untitled:3}[/e2pdf-format-output] - 1st checkbox "Year"
[e2pdf-format-output explode=" " output="{9}"]{Untitled:3}[/e2pdf-format-output] - 2nd checkbox "Year"
[e2pdf-format-output explode=" " output="{14}"]{Untitled:3}[/e2pdf-format-output] - 3rd checkbox "Year"

and so on...

* Any next value in brackets output="{14}" must be +5.
** {Untitled:3} - Must be replaced with your "checkbox" field slug.

Did you try shortcodes above? If not, follow steps below:

1. Create "input" inside E2Pdf Template
2. Open properties of this "input" via "Right Mouse Click" -> "Properties".
3. Set "Comb" setting and "Length" to "4"
4. Put the Value:
[e2pdf-format-output explode=" " output="{4}"]{Untitled:3}[/e2pdf-format-output]

* replace {Untitled:3} with your checkbox field slug

We would really appreciate your feedback at WordPress.org!
9 August, 2022 11:40:09
E2Pdf
Support
Topics: 7
Messages: 3335
Did you create 3 fields?

1st field "input" - "Comb" + Length 2 - The size of the field must be over 2 checkbox
2nd field "input" - "Comb" + Length 2 - The size of the field must be over the next 2 field checkbox
3rd field "input" - "Comb" + Length 4 - The size of the field must be over the next 4 checkboxes

Attach please screenshots of each created field properties...
We would really appreciate your feedback at WordPress.org!
9 August, 2022 12:03:51
E2Pdf
Support
Topics: 7
Messages: 3335
E2Pdf can't create space between "single" field boxes but you can just remove the "border" by setting it to "0" on the inputs (if you are using pre-uploaded) PDF or remove the "border" by setting it to "0" and create custom inputs as a background.


We would really appreciate your feedback at WordPress.org!
9 August, 2022 12:50:33
E2Pdf
Support
Topics: 7
Messages: 3335
We suspect that "explode" is useless as this function splits the value and you are not using any identifier, so shortcode that can be used to remove comma:

[e2pdf-format-output search="," replace=""]{untitled:1}[/e2pdf-format-output]
We would really appreciate your feedback at WordPress.org!
9 August, 2022 13:52:06
E2Pdf
Support
Topics: 7
Messages: 3335
To make string uppercase:
[e2pdf-format-output filter="strtoupper"]{untitled:1}[/e2pdf-format-output]

To split string it must be used "substr" filter as:

[e2pdf-format-output substr="0,1"]{National Insurance Number:275}[/e2pdf-format-output] - the shortcode will output "u" from "um123456u".

* where "0", is the start position and "1" is the number of characters to output.

For example:
[e2pdf-format-output substr="3,1"]{National Insurance Number:275}[/e2pdf-format-output] - the shortcode will output "2" from "um123456u"

P.S. If you have the same string format and the same length from which it starts, "explode" will be also useless...
We would really appreciate your feedback at WordPress.org!
9 August, 2022 13:54:16
E2Pdf
Support
Topics: 7
Messages: 3335
P.S. We also recommend reading documentation about [e2pdf-format-output] shortcode, as it has an explanation of the most available filters: https://e2pdf.com/support/docs#shortcode-e2pdf-format-output
We would really appreciate your feedback at WordPress.org!
12 August, 2022 10:48:51
E2Pdf
Support
Topics: 7
Messages: 3335
Hi,

It must be set "Flatten" option inside E2Pdf Template to "No" or it must be used "flatten" attribute with shortcode as: [e2pdf-download id="1" flatten="0"]

We remain at your service.
We would really appreciate your feedback at WordPress.org!
16 August, 2022 08:31:57
E2Pdf
Support
Topics: 7
Messages: 3335
Hi,

You can try to format number with [e2pdf-format-number] shortcode as:

[e2pdf-format-number decimal="2" dec_point="."]{Number:1}[/e2pdf-format-number]

And to split number to 2 strings (if required) you can use following shortcodes:

[e2pdf-format-output explode="." output="{0}"][e2pdf-format-number decimal="2" dec_point="."]{Number:1}[/e2pdf-format-number][/e2pdf-format-output]

[e2pdf-format-output explode="." output="{1}"][e2pdf-format-number decimal="2" dec_point="."]{Number:1}[/e2pdf-format-number][/e2pdf-format-output]

We remain at your service.

We would really appreciate your feedback at WordPress.org!