Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > BizForm sends empty fields in email View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
Gitesh - 5/5/2013 10:08:24 PM
   
BizForm sends empty fields in email
Hi Guys,

We are working in Kentico 7.0.30.

We have a bizform with lots of fields in it (approx 50 fields). We want the notification email to show only those fields which are filled by the client. Empty fields & labels should not be shown in the email.

Can we write an if condition for that? I have tried writing K# macros but they don't get resolved.

Your help is appreciated.

Cheers
Gitesh Shah

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 5/7/2013 7:19:59 AM
   
RE:BizForm sends empty fields in email
Hello Gitesh,

Yes, you can use there a simple macros like this one:
{%if(Message==""){""}else{"FieldValue: "+Message}%}

If Message field is empty... nothing is written into the e-mail, in other wise... the field name and the Message test are written.

Best regards,
Martin Danko