Skip to content

Files

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 28, 2024
Sep 15, 2022
Jan 10, 2018
Feb 6, 2024
Jan 22, 2021
Jan 22, 2021
Jan 22, 2021
Jan 10, 2018
Oct 26, 2020

Core Form Container (v2)

Form container written in HTL.

Features

  • Form submit actions like sending emails, storing content
  • Configurable list of allowed components
  • Thank you page

Use Object

The Core Form Container component uses the com.adobe.cq.wcm.core.components.models.form.Container Sling Model for its Use-object.

Component Policy Configuration Properties

The following configuration properties are used:

  1. ./components - defines the allowed components that can be dropped onto a Form Container associated to this component policy
  2. ./columns - defines the number of columns for the container's grid for a Form Container associated to this component policy

Edit Dialog Properties

The following properties are written to JCR for this Core Form Container component and are expected to be available as Resource properties:

  1. ./actionType - defines the action that will be performed by the form
  2. ./workflowModel - defines the workflow which should be started with the stored content as payload
  3. ./workflowTitle - defines the workflow's title
  4. ./redirect - if left empty the form will be rendered after submission, otherwise the user will be redirected to the page stored by this property
  5. ./id - defines the component HTML ID attribute.

Client Libraries

The component provides a core.wcm.components.form.container.v2.editor editor client library category that includes JavaScript handling for dialog interaction. It is already included by its edit dialog.

BEM Description

BLOCK cmp-form

Information