> For the complete documentation index, see [llms.txt](https://docs.toomuchmedia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.toomuchmedia.com/nats-admin/sites/further-reading/join-template-variables.md).

# Join Template Variables

*Article Topics:* [*Sites*](https://docs.toomuchmedia.com/getting-started/common-topics/sites.md)*,* [*Tour*](https://docs.toomuchmedia.com/getting-started/common-topics/tours.md)*,* [*Templates*](https://docs.toomuchmedia.com/getting-started/common-topics/templates.md)

## Join Template Variables

The following variables can be used in join templates, which are located in the [Sites Admin](https://docs.toomuchmedia.com/nats-admin/sites/site-templates.md). These [Smarty](https://docs.toomuchmedia.com/using-nats/one-off-articles/smarty.md) variables allow you to receive information to display on your Join Templates.

### Before Visitor Submit

* {$\_siteid}
* {$\_tourid}
* {$cascade}
* {$cascade\_bundle\_billers} (array)
* {$config} (array)
* {$countries} (array)
* {$default\_option}
* {$is\_third\_party}
* {$join\_option\_bundles} (array)
* {$join\_optionids} (array)
* {$join\_options} (array)
* {$nats\_code}
* {$ncr\_option}
* {$num\_join\_options}
* {$payment\_options} (array)
* {$payment\_options\_section} (array)
* {$program}
* {$site}
* {$site\_data} (array)
* {$site\_info} (array)
* {$states} (array)
* {$states\_au} (array)
* {$states\_ca} (array)
* {$states\_us} (array)
* {$tour\_info} (array)

The {$cascade\_bundle\_billers} and {$join\_option\_bundles} variables hold the [bundle](https://docs.toomuchmedia.com/nats-admin/cross-up-sales/bundles.md) items of each join option, and are only available when the **Signup Bundle Info** setting is enabled in the [Surfer](https://docs.toomuchmedia.com/nats-admin/configuration/configuration-overview/surfer.md) section of the Configuration Admin.

### After Visitor Submit

The following template variables, including the ones mentioned above, can be used after a visitor has submitted the join form and received errors.

* {$errors} (array)
* {$vars} (array)

## Gateway Join Template Variables

Gateway Join Template Variables are used to pass information a visitor has entered on the join page to the gateway join template. You can use the following variables on the gateway\_join template in the [Sites Admin](https://docs.toomuchmedia.com/nats-admin/sites/site-templates.md), for example, to pass the email address entered by a user on a join template to the gateway join template.

This depends on whether you are using a [Gateway Biller](https://docs.toomuchmedia.com/getting-started/integrations/supported-billers.md#integrated-gateway-billers).

### Before Visitor Submit

* {$\_siteid}
* {$\_tourid}
* {$billerid}
* {$bshort}
* {$bundle\_billerid}
* {$bundle\_optionid}
* {$cascade\_bundle\_billers} (array)
* {$cc\_months} (array)
* {$cc\_years} (array)
* {$config} (array)
* {$countries} (array)
* {$country}
* {$join\_option\_bundles} (array)
* {$mdata} (array)
* {$member\_ident\_details}
* {$option\_info} (array)
* {$site\_info} (array)
* {$states} (array)
* {$states\_au} (array)
* {$states\_ca} (array)
* {$states\_us} (array)
* {$xsells} (array)

### After Visitor Submit

The following template variables, including the previous ones, can be used after a visitor has submitted the form and received errors.

* {$errors} (array)
* {$vars} (array)

## Special Template Variables

There also exists another category of Template Variables known as Special Variables, which can be used on Special Site Templates.

### mail\_affiliate\_on\_message

* {$firstname} {$affiliate\_email}

## Related Articles

{% content-ref url="/pages/Re5VgnlvWvWStron3wGY" %}
[Customizing your Join Form](https://docs.toomuchmedia.com/nats-admin/sites/common-questions/customizing-your-join-form.md)
{% endcontent-ref %}
