Show Menu

Form Button Component

The Core Component Form Button Component allows for the inclusion of a button to trigger an action on a page.


The Core Component Form Button component allows for the creation of button field, often to trigger the submission of the form and is intended to be used along with the Form Container component .
The button properties can be defined by the content editor in the configure dialog .

Version and Compatibility

The current version of the Form Button Component is v2, which was introduced with release 2.0.0 of the Core Components in January 2018, and is described in this document.
The following table details all supported versions of the component, the AEM versions with which the versions of the component is compatible, and links to documentation for previous versions.
Component Version
AEM 6.3
AEM 6.4
AEM 6.5
For more information about Core Component versions and releases, see the document Core Components Versions .

Sample Component Output

The following is sample taken from We.Retail .



<div class="container responsivegrid aem-GridColumn aem-GridColumn--default--12"> <form method="POST" action="/content/we-retail/us/en/experience.html" id="new_form" name="new_form" enctype="multipart/form-data" class="cmp-form aem-Grid aem-Grid--12 aem-Grid--default--12"> <input type="hidden" name=":formstart" value="/content/we-retail/us/en/experience/jcr:content/root/responsivegrid/container"> <div class="button aem-GridColumn aem-GridColumn--default--12"> <button type="BUTTON" class="cmp-form-button" name="loveToast" value="ILoveToast">Click here if you love toast!</button> </div> </form> </div>


"button":{ "columnClassNames":"aem-GridColumn aem-GridColumn--default--12", ":type":"core/wcm/sandbox/components/form/button/v2/button", "name":"loveToast", "jcr:title":"Click here if you love toast!", "type":"button", "value":"ILoveToast" }

Technical Details

The latest technical documentation about the Form Button Component can be found on GitHub .
Further details about developing Core Components can be found in the Core Components developer documentation .

Configure Dialog

The configure dialog allows the content author to define the parameters of the button.

Properties Tab

  • Type
    • Button
    • Submit
  • Title
    - The text displayed on the button
    • If none provided it defaults to the button type
  • Name
    - The name of the button, which is submitted with the form data
  • Value
    - The value of the button, which is submitted with the form data

Design Dialog

Styles Tab

The Form Button Component supports the AEM Style System .