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: 3574
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.
8 August, 2022 09:39:59
E2Pdf
Support
Topics: 7
Messages: 3574
The result will look like below:
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: 3574
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:
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.
9 August, 2022 11:00:55
E2Pdf
Support
Topics: 7
Messages: 3574
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
9 August, 2022 11:17:52
E2Pdf
Support
Topics: 7
Messages: 3574
If the checkbox values exactly the same as " April 2016 – April 2017" then:
* 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
9 August, 2022 11:40:09
E2Pdf
Support
Topics: 7
Messages: 3574
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...
9 August, 2022 12:03:51
E2Pdf
Support
Topics: 7
Messages: 3574
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.
9 August, 2022 12:50:33
E2Pdf
Support
Topics: 7
Messages: 3574
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:
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 use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according our to our Cookie Policy.