Support » Plugin: Jazzy Forms » line breaks in email with conditional statements

  • Resolved mrscooper

    (@mrscooper)


    Hello!

    Fantastic plugin!!

    Say I have a list in my response email:

    {{IF(fruit=1,fruit_val,””)}}
    {{IF(bread=1,bread_val,””)}}
    {{IF(drink=1,drink_val,””)}}
    {{IF(butter=1,butter_val,””)}}
    {{IF(veg=1,veg_val,””)}}

    if bread=0 and butter=0 I would like the list to be:
    ——–
    apple
    water
    carrot
    ——–

    instead of
    ——–
    apple

    water

    carrot
    ——–
    Since I have a list of about 20 choices, I do not want so many spaces in my email.

    Any advice would be greatly appreciated! Thank you!

    https://wordpress.org/plugins/jazzy-forms/

Viewing 2 replies - 1 through 2 (of 2 total)
  • mrscooper

    (@mrscooper)

    I think I have it solved, I added an extra conditional to each item. The “if true” value is two quotes separated by a line break.

    `{{IF(fruit=1,fruit_val,””)}}{{IF(fruit=1,”
    “,””)}}{{IF(bread=1,bread_val,””)}}{{IF(bread=1,”
    ,””)}}{{IF(drink=1,drink_val,””)}}{{IF(drink=1,”
    ,””)}}

    and so on….

    I hope that helps someone else!

    mrscooper

    (@mrscooper)

    Uh oh, had some missing quotes, here is a corected example:

    {{IF(fruit=1,fruit_val,””)}}{{IF(fruit=1,”
    “,””)}}{{IF(bread=1,bread_val,””)}}{{IF(bread=1,”
    “,””)}}{{IF(drink=1,drink_val,””)}}{{IF(drink=1,”
    “,””)}}

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘line breaks in email with conditional statements’ is closed to new replies.