I want to use macro in form email notification, but didn't work
{%IfEmpty(Phone,"",show label Phone)%}
I want to hide label, in case input is empty. So in email, it should hide label with empty input.
Is there a way we can control this?
http://prntscr.com/kln8o9
I believe the macro method IfEmpty() is only available in transformations. So try something like this:
IfEmpty()
{%If(Phone != "") { %} $$label:Phone$$ {% } |(identity)GlobalAdministrator%}
I just tested this which works.
<tr> <td>{% if (phone != "") {%}$$label:Phone$${% } |(identity)GlobalAdministrator%}</td> <td>$$value:Phone$$</td> </tr>
both solution working perfectly !!!
Please, sign in to be able to submit a new answer.