• Resolved ak

    (@akafridealz)


    Hello,

    the copy of the form that the user receives via e-mail is currently based on this:

    <p><%fieldname449 separator={{ }} if_not_empty%><br>
    <%fieldname13 separator={{ }} if_not_empty%><br>
    <%fieldname505 separator={{ }} if_not_empty%><br>
    <%fieldname506 separator={{ }} if_not_empty%><br>
    <%fieldname508 separator={{ }} if_not_empty%><br>
    <%fieldname603 separator={{ }} if_not_empty%><br>
    <%fieldname605 separator={{ }} if_not_empty%><br>
    <%fieldname610 separator={{ }} if_not_empty%><br>
    <%fieldname638 separator={{ }} if_not_empty%><br>
    <%fieldname639 separator={{ }} if_not_empty%><br>
    <%fieldname641 separator={{ }} if_not_empty%><br>
    <%fieldname648 separator={{ }} if_not_empty%><br>
    <%fieldname650 separator={{ }} if_not_empty%><br>
    <%fieldname431 separator={{ }} if_not_empty%><br>
    <%fieldname432 separator={{ }} if_not_empty%><br>
    <%fieldname672 separator={{ }} if_not_empty%><br>
    <%fieldname446 separator={{ }} if_not_empty%></p>

    This means, that when a fieldname is empty, an empty line is submitted.

    So the e-mail to the customer looks like this at the moment:

    “Name: Marc
    Surname: Example
    Product: Example 2

    Telephone: 123
    Adress: Street Name”

    How can I remove the blank spaces/blank lines from the e-mail for empty fields?

    The e-mail should look like this instead:

    “Name: Marc
    Surname: Example
    Product: Example 2
    Telephone: 123
    Adress: Street Name”

Viewing 7 replies - 1 through 7 (of 7 total)
  • Yes I need to know this too

    Plugin Author codepeople

    (@codepeople)

    Hello @akafridealz,

    You simply should define the email as follows:

    
    <%fieldname449 separator={{ }} if_not_empty after={{<br>}} %>
    <%fieldname13 separator={{ }} if_not_empty after={{<br>}} %>
    <%fieldname505 separator={{ }} if_not_empty after={{<br>}} %>
    <%fieldname506 separator={{ }} if_not_empty after={{<br>}} %>
    <%fieldname508 separator={{ }} if_not_empty after={{<br>}} %>
    <%fieldname603 separator={{ }} if_not_empty after={{<br>}} %>
    <%fieldname605 separator={{ }} if_not_empty after={{<br>}} %>
    <%fieldname610 separator={{ }} if_not_empty after={{<br>}} %>
    <%fieldname638 separator={{ }} if_not_empty after={{<br>}} %>
    <%fieldname639 separator={{ }} if_not_empty after={{<br>}} %>
    <%fieldname641 separator={{ }} if_not_empty after={{<br>}} %>
    <%fieldname648 separator={{ }} if_not_empty after={{<br>}} %>
    <%fieldname650 separator={{ }} if_not_empty after={{<br>}} %>
    <%fieldname431 separator={{ }} if_not_empty after={{<br>}} %>
    <%fieldname432 separator={{ }} if_not_empty after={{<br>}} %>
    <%fieldname672 separator={{ }} if_not_empty after={{<br>}} %>
    <%fieldname446 separator={{ }} if_not_empty after={{<br>}} %>
    
    

    The br tags are part of the fields’ tags, defined as the attribute: “after”.
    Best regards.

    Thread Starter ak

    (@akafridealz)

    Perfect, thanks so much! This works perfectly!

    Hi

    I have tried to use these separator codes, but I don’t know why when it reads the <br> Code, it just goes to the next line and in total the code is not working.

    Please check this vidoe

    http://screencast-o-matic.com/watch/cF100JFbm4

    Plugin Author codepeople

    (@codepeople)

    Hello @amirdorna,

    I’m sorry, but in the current version of the plugin the attributes: after, separator and before are supported only with the <%fieldname#%> tags, and not with the <%fieldname#_shortlabel%>

    Best regards.

    Oh, ok,
    So I want to show the ShortLabels one in each line, just if they are not empty.

    Is there any way for that?

    Plugin Author codepeople

    (@codepeople)

    Hello @amirdorna,

    The alternative with the current version of the plugin would be include the tags as follows:

    
    <%fieldname1_block%><%fieldname1_shortlabel%><br><%fieldname1_endblock%>
    

    Best regards.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Remove blank spaces from e-mail’ is closed to new replies.