• Hello guys!

    My wish is for the fields that are left empty in my forms not to appear in the email that is sent out.

    I have the following code in the email section:

    <tr>
    <td style="background-color:#ffffff; border-top: 1px solid #f1f1f1; border-right: 1px solid #f1f1f1; padding: 10px;">S?rligt till?g</td>
    <td style="background-color:#ffffff; border-top: 1px solid #f1f1f1; border-right: 1px solid #f1f1f1; padding: 10px;">[ST]</td>
    </tr>

    If i use the standard function in the mail tab “Exclude lines with blank mail-tags from output” – it only blocks out the TD with [ST] included and the TD above with Field label still appears in the email with an empty row next to it. I’ve tried various PHP codes solutions but i just cant seem to hit the right one. PLEASE HELP!

    • This topic was modified 3 days, 3 hours ago by eal1c.
    • This topic was modified 3 days, 2 hours ago by eal1c.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    See Message body

    Why don’t you simply put the whole <tr>...</tr> into a single line?

    Thread Starter eal1c

    (@eal1c)

    Thank you very much for the suggestion!

    But when i do that it looks different to the other <tr> lines.

    It visually looks like this when put together in one <tr>:
    S?rligt till?g:123
    But when i have two <td> in the <tr> it its seperated in two columns like this: | S?rligt till?g | 123 |

    I’ve done alot so the form looks very nice visually and putting them together under one <tr> will ruin that.

    Im mainly looking for a php code that will eliminate the entire <tr> if the value [ST] is empty in the the form. Is that possible?

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.