> For the complete documentation index, see [llms.txt](https://docs.civictheme.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.civictheme.io/content-authoring/components/webform.md).

# Webform

### Summary

The Webform component allows you to add a webform into a content page - from a basic contact us form to a more comprehensive webform.

<img src="https://3596844540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F79QhtrrFEncRGId6RF6A%2Fuploads%2Fgit-blob-1d763973567061e559375ad8fb989bdca5d133fc%2Fimage.png?alt=media" alt="" data-size="original">

### How to add a Webform

**Step 1:** Go to the page you'd like to add the Webform to (or create a new page) and in the Content tab, Components section, select Webform from the dropdown list.

<figure><img src="https://3596844540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F79QhtrrFEncRGId6RF6A%2Fuploads%2Fgit-blob-920d2a86b54dca237c04e2d59a52ac124b89aaa2%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

Step 2: Fill in the fields as per below.

<figure><img src="https://3596844540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F79QhtrrFEncRGId6RF6A%2Fuploads%2Fgit-blob-83b2f1a831858bab210592b519d583c422af24fb%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

1. Webform - Select a webform from the dropdown (note, before adding webforms to a page you'll need to create the webform).
2. Webform settings - choose the status (Open, Closed or Scheduled) and add default submission data if desired.
3. Theme - Select light or dark theme.
4. Vertical spacing - Add vertical spacing on the component (above, below or above AND below).
5. Background - Check this box to apply a background colour.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.civictheme.io/content-authoring/components/webform.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
