How to Use the `{all_fields}` Smart Tag in ConvertForms

The `{all_fields}` Smart Tag in ConvertForms is a powerful tool that allows you to dynamically display all the information submitted through a form. This tag can be used in email notifications, thank you messages, or even in PDF submissions, giving you a complete overview of the data collected. What makes this Smart Tag particularly useful is its ability to be customized through various options, enabling you to tailor the output according to your needs.

Basic Usage

By default, the {all_fields} tag outputs all the submitted form fields along with their labels in an HTML layout. For example:

<div><strong>Name</strong>: John Doe</div>
<div><strong>Email Address</strong>: [email protected]</div>
<div><strong>Comments</strong>: This is a test message</div>

Customization Options

Hide Labels

If you prefer not to show the field labels in the output, use the --hideLabels option.

{all_fields --hideLabels=true}

Exclude Empty Fields

To exclude fields that have not been filled out, use the --excludeEmpty option.

{all_fields --excludeEmpty=true}

Exclude Specific Fields

If you want to exclude certain fields by their name, use the --excludeFields option. This is particularly useful for omitting fields that are not relevant for display.

{all_fields --excludeFields=text1,dropdown2}

Exclude Specific Field Types

You can also exclude fields based on their type, such as hidden fields, by using the `--excludeTypes` option.

{all_fields --excludeTypes=hidden}

Combined Example with Explanation

You can combine multiple options to refine the output even further. For example:

{all_fields --excludeFields=text1,dropdown2 --excludeTypes=hidden --excludeEmpty=true}

Explanation

  • --excludeFields=text1,dropdown2 - This excludes the fields named `text1` and `dropdown2` from the output.
  • --excludeTypes=hidden - This ensures that all hidden fields are omitted.
  • --excludeEmpty=true - This option excludes any fields that were left empty during the form submission.

This combined command is particularly useful when you need a clean and precise output, showing only the relevant fields that were filled out, without any unnecessary or hidden data cluttering the display.

Further notes...

The {all_fields} Smart Tag is an incredibly versatile tool within ConvertForms, allowing for comprehensive and customizable form data presentation. By understanding and utilizing these options, you can tailor your form outputs to meet your specific requirements, ensuring that only the most relevant information is displayed.