# Form Triggers 🧪

## Checkbox Trigger&#x20;

sa-trigger-form-checkbox-on = ( event name )&#x20;

sa-trigger-form-checkbox-off = ( event name ) &#x20;

## Button Trigger&#x20;

sa-trigger-form-button-click = ( event name )&#x20;

## Show / Hide Fieldset&#x20;

Usage notes;&#x20;

Must be a custom element `<fieldset>` wrapping the elements&#x20;

sa-action-form-fieldset-show = ( event name )&#x20;

sa-action-form-fieldset-hide = ( event name )&#x20;

sa-action-form-fieldset-toggle = ( event name )&#x20;

Use cases;

* Show / hide a group of inputs&#x20;
* Enable / disable validation automatically&#x20;

Technical notes;&#x20;

* Uses disabled on the fieldset directly, to novalidate all of the fields within so that the form can be submitted with the fields hidden &#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://attr.sygnal.com/overview/events/triggers/form-triggers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
