# config\_toggle

Source: https://zotonic.com/docs/1723/config_toggle

URI: https://zotonic.com/id/1723

Language: en



Toggle a configuration value. Used in the admin, for instance when displaying a “live” checkbox the state of which should reflect a config value.

The required `module` and `key` arguments identify the entry. On click, the action stores the triggering input's `triggervalue`; for a checkbox this is its new checked value. Only editable administrators may change configuration.

```django
{% wire id="feature-enabled" action={config_toggle module="mod_example" key="enabled"} %}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1723?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1723?language=en>)
