Is it possible to have the results include only fields with results in the admin and user emails? I have a form that collects data for 3 different possible options. I want to get the data only for the option that was chosen, not all of the empty fields from the other 2 options.

  • Could you go ahead and paste a sample from your template? You might need to paste them in a pastie (like pastebin.com) because you don't have privileges to edit your own question yet. Do that a leave link here as a comment.
    – jrothafer
    Oct 5, 2015 at 14:14
  • Email Template <p><strong>Form: </strong> {form:label}</p> <p><strong>Date: </strong> {date:usa}</p> {form:fields} {if field:value} <p><strong>{field:label}:</strong> {field:value}</p> {/if} {/form:fields}
    – Pat Pearce
    Oct 5, 2015 at 14:28
  • Link to form: armstrong.edu/armstrong/forms/… The vehicle Requested item on the form controls which set of fields the user completes. I only want the fields the user completes in the results email.
    – Pat Pearce
    Oct 5, 2015 at 14:31
  • Hrmm.. after hitting the Devdemon docs, I'm not sure you can do what you want. What you need to do is be able to output fields as single variables, but it looks like Devdemon only lets you use a variable pair loop. There could be a really nasty PHP solution, but I'm not sure you'd want it. I also don't know Devdemon so perhaps someone else can chime in.
    – jrothafer
    Oct 5, 2015 at 14:48

1 Answer 1



You can create a template with the fields manually. Say you have a field called phone.

You can do:

{if field:phone}Phone: {field:phone}{/if}



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.