> 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/skins-and-templates/further-reading/template-functions/nats_display_edit_defaults.md).

# nats\_display\_edit\_defaults

Alias: display\_edit\_defaults

## Parameters

(*Required parameters in **bold**)*

| Parameter                                                                                                       | Description                                                      | Possible Values                                             | Default Value                                | Example                |
| --------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ----------------------------------------------------------- | -------------------------------------------- | ---------------------- |
| tpl                                                                                                             | Template used to display output                                  | Any valid template                                          | The template, *function\_edit\_defaults*     | tpl="mytemplate"       |
| change                                                                                                          | A list of settings to change                                     | A comma-separated list of: *program*, *campaign*, or *site* | No value; lets affiliate change all settings | change="campaign,site" |
| [assign\_prefix](/nats-admin/skins-and-templates/further-reading/template-function-parameters/assign_prefix.md) | Prefix output variables with this word. (Click link for details) | Any valid Smarty variable name                              | *None.* (No prefix is used)                  | assign\_prefix="myvar" |
| [data\_only](/nats-admin/skins-and-templates/further-reading/template-function-parameters/data_only.md)         | Set variables but don't display the template                     | 1                                                           | *None.* The template is displayed.           | data\_only=1           |

## Output

A form with three drop-down boxes: Default Program, Default Campaign, and Default Site.

## See Also

* [nats\_display\_edit\_payvia](/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_edit_payvia.md) -- displays a form to change an affiliate's payment type.
