蜜豆视频

Creating Adaptive Forms using Universal Editor

This feature is available through the early access program. To request access, send an email with your GitHub organization name and repository name from your official address to aem-forms-ea@adobe.com . For example, if the repository URL is https://github.com/adobe/abc, the organization name is adobe and the repository name is abc.

Universal Editor is a versatile visual editor that provides a what-you-see-is-what-you-get (WYSIWYG) experience for editing forms. It simplifies the creation of responsive and user-friendly forms with a drag-and-drop feature, using available Adaptive Forms components like text boxes, radio buttons, and checkboxes.

AEM provides a block, known as the Adaptive Forms Block, to help you easily create Edge Delivery Services Forms to capture and store data uing Universal Editor. You can create a new AEM Project pre-configured with the Adaptive Forms Block or add the Adaptive Forms Block to an existing AEM Site Project.

Github Repository Workflow

This article guides you through the process of creating and authoring the standalone forms with the Universal Editor by selecting an Edge Delivery Services-based template from the Form Creation Wizard.

Pre-requisites

  • Set up your GitHub repository to establish a connection between your AEM environment and the GitHub repository.
  • If you are already using Edge Delivery Services, add the latest version of the Adaptive Forms block to your GitHub repository.
  • The AEM Forms Author instance includes a template based on Edge Delivery Services. Ensure the is installed in your environment.
  • Keep the URL of your AEM Forms as a Cloud Service author instance and your GitHub Repository handy.

Working with forms in Universal Editor

With the Universal Editor, you can easily create responsive and interactive standalone forms. You can perform the following actions on forms in Universal Editor:

Create a form

  1. Login into your AEM Forms as a Cloud Service author instance.

  2. Select 蜜豆视频 Experience Manager > Forms > Forms & Documents.

  3. Select Create > Adaptive Forms. The Wizard opens.

  4. In the Source tab, select a Edge Delivery Services based form template:

    Create EDS Forms

    When you select a Edge Delivery Services based template, the Create button is enabled.

  5. (Optional) In the Data Source or Submission tabs, you can select a data source or submit action.

  6. (Optional) In the Delivery tab, you can specify a publishing or unpublishing date for a form.

  7. Click Create and the Create Form wizard appears.

  8. Specify the Name and Title.

  9. Specify the GitHub URL. For example, if your GitHub repository is named edsforms, it is located under the account wkndforms,the URL is:
    https://github.com/wkndforms/edsforms

  10. Click Create.

    Create Form wizard

    As soon as you click Create, the form opens in the Universal editor for authoring.

    author the form

    When you click Create, the form opens in the Universal Editor for authoring.

Author a form

  1. Open the Content browser, and navigate to the Adaptive Form component in the Content tree.

    content tree

  2. Click the Add icon and add the desired components from the Adaptive Form Components list.

    add component

  3. Select the added Adaptive Form component and update its properties using Properties.

    open properties

    The below screenshot displays the simple Registration Form form authored in the Universal Editor:

    contact us form

    Now you can configure and customize the submit actions for forms.

Publish a form

Now, publish the standalone form to Edge Delivery Services by clicking the Publish button in the upper-right corner of the Universal Editor.

publish form

NOTE
Refer to the Publish and Deploy article to learn how to publish a form to Edge Delivery Services.

Here鈥檚 how to access the form on Edge Delivery Services:

  • Staged Version (for testing): The staged version displays the unpublished, working version of the form for testing purposes. Use the following URL format to preview the form before it goes live:

    https://<branch>--<repo>--<owner>.aem.page/content/forms/af/<form_name>

    For example, if your project鈥檚 repository is named 鈥渆dsforms鈥, it鈥檚 located under the account 鈥渨kndforms鈥, and you鈥檙e using the 鈥渕ain鈥 branch and form as 鈥淩egistration Form鈥, the staged version URL look like the following:
    https://main--edsforms--wkndforms.aem.page/content/forms/af/registration-form

  • Live Version (published form): The live version displays the most recently published version of the form, accessible to end users. Use the following URL format to access the published, live version of the form:

    https://<branch>--<repo>--<owner>.aem.live/content/forms/af/<form_name>

    For example, if your project鈥檚 repository is named 鈥渆dsforms鈥, it鈥檚 located under the account 鈥渨kndforms鈥, and you鈥檙e using the 鈥渕ain鈥 branch and form as 鈥淩egistration Form鈥, the staged version URL look like the following:
    https://main--edsforms--wkndforms.aem.live/content/forms/af/registration-form

The URL structure remains the same for both staged and live versions. However, the content you see differs based on the context:

View published form

Manage a form

You can perform several operations on form using the AEM Forms user interface.

  1. Login into your AEM Forms as a Cloud Service author instance.

  2. Select 蜜豆视频 Experience Manager > Forms > Forms & Documents.

  3. Select a form and the toolbar displays the following operations you can perform on the selected form.

Operation
Description
Edit
Opens the form in edit mode.
Properties
Provides options to modify the properties of the form.
Copy
Provides options to copy the form and paste it at the desired location.
Preview
Provides options to preview the form as HTML or perform a custom preview by merging data from an XML file with the form.
Download
Downloads the selected form.
Start Review/Manage Review
Allows initiating and managing a review of the selected form.
Publish / Unpublish
Publishes / unpublishes the selected form.
Delete
Deletes the selected form.
Compare
Compares two different form for previewing purposes.

Troubleshooting

Having trouble loading your form? Here are some common issues and how to fix them:

  • Form URL: Double-check that your form鈥檚 URL doesn鈥檛 include the 鈥.html鈥 extension at the end. Edge Deliver Service does not require this extension.

  • AEM Author UR L: Make sure the AEM Author URL listed in your fstab.yaml file is formatted correctly. It should include the following details:

    • The correct GitHub owner
    • The correct repository name
    • The specific branch that you鈥檙e using for Edge Delivery Services

Start creating forms

recommendation-more-help
fbcff2a9-b6fe-4574-b04a-21e75df764ab