1. Home
  2. /
  3. Docs
  4. /
  5. Widget Library
  6. /
  7. Form Controls
  8. /
  9. Button

Button

The Button Widget provides a simple way to add calls to action to a page. Buttons can be configured to navigate users to another page, website, file, or other destination, or to submit a form.

PropertyDescription
TextThe text to display on the button.
Redirect ToThe page to redirect to when the button is clicked. 
TypeDetermines the button’s behavior. Primarily used for special scenarios, such as within forms.

Default (Button?)
The button has no default behavior, and does nothing when pressed by default. Client-side scripts can be added to listen for the element’s events and perform custom tasks.

Submit
Submits the HTML form in which it is placed. When used within a Dataverse Form, the submitted field values are sent to Dataverse for processing.

Reset
Resets the values for all fields on a form. (field must be placed on a form)

Go Back
Used in conjunction with the Go Back Redirect setting in a Form Widget configuration. When configured and placed on a form, the Go Back button redirects the user to the preconfigured page.

Styling

PropertyDescription
VariantSpecifies the button’s visual style, reflecting its intended purpose or importance.
SizeSize of the button.
LookProvides a secondary visual style of the button.

Example

Configuration: