Skip to main content

ButtonElement

The Button Element object defines a button to be added to a prompt's button container.

PropertyRequiredTypeDefaultDetails
nameYesstringN/AString that will be returned in the Prompt Result button property if the button is clicked. Must be unique to the prompt.
valueNostringN/AThe text to display on the button.
classesNoArrayN/AAn Array of string CSS classes to apply to the button.

Button Element object example

{
name: "submit",
value: "Save Changes",
classes: ["btn", "btn-primary"],
}