TransWikia.com

Is there a way to hide empty fields from showing up in the email notification when using EEHarbor Forms?

ExpressionEngine® Answers Asked by randyturtle on October 2, 2021

I would like to "hide" the empty fields in my admin/user email notifications. Right now it’s outputting all of them when I do:

{form:fields}
{field:label} : {field:value}
{/form:fields}

I’ve tried using conditionals as well but nothing works.

(The Forms module was previously known as DevDemon Forms.)

One Answer

Just found out the answer. I had to add quotation marks around the {field:value} conditional. Below is an example.

{form:fields}
{if "{field:value}" != ''}
{field:label} : {field:value}
{/if}
{/form:fields}

Correct answer by randyturtle on October 2, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP