Is there a way to only get the fields with data in to the email template?
So, if no data is entered in a field, it won't get into the email.
So, if no data is entered in a field, it won't get into the email.
<?php
if ( isset($form->data['input_name']) && $form->data['input_name'] ) {
echo "<tr><td>Label</td><td>{$form->data['input_name']}</td></tr>";
}
?>