Hello Zee8501,
I am sorry but it is not yet possible to suppress empty fields and their labels in a PDF template.
This is an interesting feature that we already plan to implement in the not so far future.
The name of the number field is simply a hard coded text in the PDF template.
It is not yet possible (but also planned) to have a placeholder for the field label itself.
However, there is a way to get you a list of actually numbered products as you intend to use.
- You need to add an email field for the customer which is set to 'required'.
- In the form configuration on tab 'Mail Options' you have to configure the section 'Options for recipient mail' something like this:
'Email Receipt' = 'Yes'
'Email Receipt Subject' = 'the products you have ordered'
'Email Receipt Text' = 'a more or less lengthy fix email text'
The list of form field data will be added just behind this 'Email Receipt Text'.
This is where your numbered products come into the play.
'Include Data' = 'Yes'
'Exclude empty fields' = 'Yes'
This is where number fields that are empty are filtered out.
This is the feature that is yet missing for PDF templates.
In your case the number field must be either a number > 0 or empty.
Only number fields with a number > 0 are part of the list added to the email text at the end.
'Include data record id' = 'No'
'Include Registered At' = 'No'
'Include Form Title' = 'No'
'Include IP' = 'No'
You can see these settings here:
[url]
vi-solutions.de/forum-uploads/form-confi...ns-products-form.png
[/url]
- You need to configure the email field on tab 'Advanced' like this:
'Add to receipt mail' = 'No'
This way the email field itself is not part of the added data list.
- You need to activate the plugin 'Visforms - E-Mail Anhänge'
This will add the final email text (having the products list of products which have a number value that is not empty) as a PDF document as an attachment to the email send to the customer.
- You need to configure the form to use the plugin 'Visforms - E-Mail Anhänge' on the now visible additional tab 'Mail Attachments' in the form configuration:
(attention: not the also now visible additional tab 'Edit Mail Attachments')
'Attach receipt mail as PDF' = 'Yes'
The email text and the attached PDF will look something like this (text as configured in mail settings):
[url]
vi-solutions.de/forum-uploads/form-confi...s-form-mail-text.pdf
[/url]
Hello Customer,
below the products you have ordered.
Best Regards, company
Products List:
product1 : 4
product3 : 8
Hope this is something like you have in mind, Ingmar