Forums

Email only completed form fields? - ChronoContact V3.2

Dan@ctwebsvc.com 02 Jul, 2011
I am new to using ChronoContact forms within Joomla 1.5 but have successfully set up a long-winded form at http://www.ehnac.org/index.php?option=com_content&view=article&id=141&Itemid=97 I am planning to turn this into a multi-page form because not everyone needs to complete all 7 groups of "Site" information. With the current format the email that is delivered shows all of the elements with blanks even if the field was not completed. This makes for a long email showing far more information than is usually needed.

I am sure there is a way to only deliver the populated fields and I'm sure it has to be done using PHP which I am not very familiar with. I did purchase the "ChronoForms 3.1 for Joomla! Site Cookbook" but there is nothing in there describing how to do this. If someone could give me one snippet of code that would deliver something like this ONLY if the field was filled in that would be an awesome help.

What I am showing below is set up in the current email template - except it is time 7 even if no content is entered.

#1) Please specify all applicable sites and EHNAC programs:
------------------------------------------------
{select_18}

Name of site #1:
------------------------------------------------
{text_20}

Contact name #1:
------------------------------------------------
{text_21}

Contact phone #1:
------------------------------------------------
{text_22}

Site Street #1:
------------------------------------------------
{text_25}

Site city #1:
------------------------------------------------
{text_24}

Site state #1:
------------------------------------------------
{select_27}

Associated EHNAC program at site #1:
------------------------------------------------
{check3}

------------------------------------------------

Thanks in advance for any pointers on how to do this. I think this is a great product.
This topic is locked and no more replies can be posted.