Name:
interface
Value:
Extend your Amplify Gen 2 app with AWS Blocks — self-contained backend capabilities you compose into your existing backend.

Page updated Aug 2, 2024

NewDeploy web apps with Git or your AI coding agent using the latest AWS Amplify. Add managed databases and authentication as you grow. Explore the documentation.
Maintenance ModeYou are viewing Amplify Gen 1 documentation. Amplify Gen 1 has entered maintenance mode and will reach end of life on May 1, 2027. For existing Gen 1 projects, a migration guide and tooling are available to help you upgrade.

Customize action buttons (Submit, Cancel, Clear, Reset)

These docs cover Amplify Gen 1. For new web apps, we recommend the latest AWS Amplify, with a simplified CLI and native integrations for databases, storage, and AI models. Get started with the latest AWS Amplify.

Amplify Studio generated forms come with three action buttons: Submit, Cancel, and Clear or Reset, depending on whether the form creates or updates a record.

Change button positions

You can choose to show the action buttons on the bottom (default), top, or top and bottom of the form.

  1. From Amplify Studio: Select the action buttons
  2. Go to Display > Position
  3. Select Bottom, Top, or Top & bottom

Customize label for Submit, Cancel, Clear, and Reset buttons

You can customize action button labels to better describe your form's use case, such as changing Submit to Create note.

  1. From Amplify Studio: Select the action buttons
  2. Go to Display > Submit button label
  3. Enter your custom button label

Toggle visibility for Submit, Cancel, Clear, and Reset buttons

You can customize the visibility of action buttons to better accommodate your form's use case. For example, if you show the form in a modal with an X as a close button, you can hide the redundant Cancel action button.

  1. From Amplify Studio: Select the action buttons
  2. Go to Display > Submit button is visible
  3. Enter your custom button label

If you hide all form action buttons, you can still leverage the onChange event handler to self-manage the form lifecycle. This is useful for a form that updates data in real-time without explicit user confirmation.