This project is no longer maintained and no further public releases are planned.

No further support will be given.

Feel free to fork the git repository.

How to hide unfilled form field values in templates

In your HTML template you can wrap the field output in emails and the subpart ###TEMPLATE_SUBMITTEDOK### with the subpart ###ISSET_[fieldname]###:

<!-- ###ISSET_fax### -->
###value_fax###<br/>
<!-- ###ISSET_fax### -->

If the user filled out the field “fax” in the form, the text will be displayed in the emails, otherwise it will not be displayed.

You can also add some conditions:

<!-- ###ISSET_fax&&phone### -->
###value_fax###<br/>
<!-- ###ISSET_fax&&phone### -->
<!-- ###ISSET_fax&&!phone### -->
###fax###<br/>
<!-- ###ISSET_fax&&!phone### -->
<!-- ###ISSET_fax||phone### -->
###fax###<br/>
<!-- ###ISSET_fax||phone### -->

As you see, you can use the operators (&&,||,!) to do some simple checks.

And there are more "conditional subparts" to show content IF a condition is true or if a given key HAS a TRANSLATION.

NOTE: The case of the fieldname in the ISSET subpart and marker MUST match.

good:

<!-- ###ISSET_EMAIL### -->
###value_EMAIL###
<!-- ###ISSET_EMAIL### -->
<!-- ###ISSET_email### -->
###value _email###
<!-- ###ISSET_email### -->

bad:

<!-- ###ISSET_EMAIL### -->
###value _email###
<!-- ###ISSET_EMAIL### -->
<!-- ###ISSET_email### -->
###value _EMAIL###
<!-- ###ISSET_email### -->

to top