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.)
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
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP