> For the complete documentation index, see [llms.txt](https://docs.varbase.vardot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.varbase.vardot.com/developers/understanding-varbase/drupal-cms-recipes/drupal-cms-forms.md).

# Drupal CMS Forms

## Description

The Drupal CMS Forms recipe provides simple contact form and form building tools. It integrates the Webform module with anti-spam protections, giving site builders a powerful yet user-friendly way to create and manage forms.

## Recipe Dependencies

Depends on the following recipes:

| Recipe                                                                                                   | Description                                                                         |
| -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| [**Drupal CMS Anti-Spam**](/developers/understanding-varbase/drupal-cms-recipes/drupal-cms-anti-spam.md) | Anti-spam and anti-abuse functionality to protect forms from automated submissions. |

## Included Modules

Brings in the following core and contributed modules to your site:

| Module                                                   | Purpose                                                                                             |
| -------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| [**CAPTCHA**](https://www.drupal.org/project/captcha)    | Provides the CAPTCHA API for adding challenges to arbitrary forms.                                  |
| **Text Editor** *(in Drupal core)*                       | Provides a framework to associate text editors (like WYSIWYGs) and toolbars with text formats.      |
| **Filter** *(in Drupal core)*                            | Filters text content in preparation for display.                                                    |
| **Views** *(in Drupal core)*                             | Provides a framework to fetch information from the database and to display it in different formats. |
| [**Webform**](https://www.drupal.org/project/webform)    | Enables the creation of webforms and questionnaires.                                                |
| [**Webform UI**](https://www.drupal.org/project/webform) | Provides a user interface for building and maintaining webforms.                                    |

## Installation

Apply the recipe using Drush:

```bash
ddev drush recipe ../recipes/drupal_cms_forms
```

## Usage

After installation, navigate to **Structure > Webforms** in the administration menu to create and manage forms. The Webform UI module provides a visual interface for adding form elements, configuring validation rules, setting up email notifications, and managing form submissions. CAPTCHA protection is automatically available for any form that requires it.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.varbase.vardot.com/developers/understanding-varbase/drupal-cms-recipes/drupal-cms-forms.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
