Skip to content

Files

form

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 6, 2025
May 20, 2025
May 27, 2025
May 20, 2025
Dec 3, 2020
Sep 24, 2024
Apr 8, 2025
May 7, 2025
May 27, 2025

Forms

There are several components and mixins available to help make working with forms easier.

Validating and Submitting Forms Using <d2l-form>

Much like a native <form> element, <d2l-form> groups nested form elements together and controls how their data is validated and submitted. Unlike native <form>s, it supports our custom form elements.

See: Form Layout and Validation

Custom Elements in Forms

To allow custom elements to participate in <d2l-form> submission and validation, use the FormElementMixin.

If your custom element uses other nested custom form elements internally, read about form element nesting.

On the other hand, if your custom element uses other nested native form elements internally, read about form element wrapping.