I have lists of checkboxes in my email template and would like to remove the blank lines created from unchecked boxes.
i.e... If I check all of my boxes I get:
1
2
3
4
5
6
7
If I check only a few boxes I get:
1
3
6
7
Is there a way to remove those blank spaces for better presentation?
Thanks
i.e... If I check all of my boxes I get:
1
2
3
4
5
6
7
If I check only a few boxes I get:
1
3
6
7
Is there a way to remove those blank spaces for better presentation?
Thanks
Hi,
Yes, just customize your email template, the auto generation is okay but may need to be tweaked a little in order to get what you need exactly.
Regards,
Max
Yes, just customize your email template, the auto generation is okay but may need to be tweaked a little in order to get what you need exactly.
Regards,
Max
Thanks Max,
I am using a custom template. But when I put multiple check boxes it always puts the blank line for missing boxes. Here is an example :
The lists of checkboxes could have multiple selections. I have to put <br> on each line to keep them stacked, and that is what is causing the blank space if the tag isn't displayed. Is there another way to accomplish this same thing with a template that will prevent the blanks?
Thanks
I am using a custom template. But when I put multiple check boxes it always puts the blank line for missing boxes. Here is an example :
<strong>Request Type </strong><br>
{AddRequest}<br>
{DeleteRequest}<br>
{ModifyRequest}<br>
<br>
<hr>
User Name : {UserName} <br>
Tracking # : {TrackingNumber} <br>
Effective Date : {EffectiveDate} <br>
Inactive Date : {InactiveDate} <br>
The lists of checkboxes could have multiple selections. I have to put <br> on each line to keep them stacked, and that is what is causing the blank space if the tag isn't displayed. Is there another way to accomplish this same thing with a template that will prevent the blanks?
Thanks
Hi jedel,
The 'usual' way to handle CheckBox groups is to give all the checkboxes the same array name e.g. my_group[] and then add a Handle Arrays action before the Email action to convert the array to a string (you can configure that to use <br /> instead of the default comma.
If they all have different names then there isn't an easy answer except to use a Custom Code action to pre-process the form data to leave out the blank entries.
It looks as though your form has custom HTML; if you use the ChronoForms wizard there is a ghost option that will remove the {input_name} entries (but not the corresponding labels).
Bob
The 'usual' way to handle CheckBox groups is to give all the checkboxes the same array name e.g. my_group[] and then add a Handle Arrays action before the Email action to convert the array to a string (you can configure that to use <br /> instead of the default comma.
If they all have different names then there isn't an easy answer except to use a Custom Code action to pre-process the form data to leave out the blank entries.
It looks as though your form has custom HTML; if you use the ChronoForms wizard there is a ghost option that will remove the {input_name} entries (but not the corresponding labels).
Bob
This topic is locked and no more replies can be posted.