> For the complete documentation index, see [llms.txt](https://docs.appmixer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appmixer.com/connector-configuration/utils/forms/form-action.md). Agents can also search and read this documentation through its [MCP server](https://docs.appmixer.com/~gitbook/mcp).

# Form Action

### Overview

The **Form Action Component** allows users to create web-based forms, collect form entries, and process submitted data dynamically. It provides a web link to the form and sends submitted data to an output port.

### Usage

This component is used to create forms with customizable fields and retrieve user responses for further processing in workflows.

#### Properties

| Property                      | Type      | Description                                                   |
| ----------------------------- | --------- | ------------------------------------------------------------- |
| `generateEntryOutPortOptions` | `boolean` | Enables dynamic generation of form entry output port options. |

#### Input Ports

| Port | Description                                                                  |
| ---- | ---------------------------------------------------------------------------- |
| `in` | Accepts form configurations such as title, fields, and CTA (Call-To-Action). |

#### Output Ports

| Port    | Description                             |
| ------- | --------------------------------------- |
| `form`  | Emits a web link to the generated form. |
| `entry` | Emits submitted form data.              |

#### Processing Logic

1. **Receives Form Configuration**:
   * Accepts form metadata including title, description, fields, and CTA button text.
2. **Generates Web Form**:
   * Creates a publicly accessible web link for the form.
3. **Handles Form Submissions**:
   * When a user submits the form, the entries are sent to the `entry` output port.
   * If JavaScript or CSS customization is included, it is applied to the form.
4. **Sends Response**:
   * Upon successful submission, the user is redirected to a thank-you message.

#### Output Data Schema

| Property        | Type     | Description                                       |
| --------------- | -------- | ------------------------------------------------- |
| `weblink`       | `string` | The URL of the generated web form.                |
| `title`         | `string` | The title of the form.                            |
| `description`   | `string` | The description of the form.                      |
| `fields`        | `object` | The defined input fields of the form.             |
| `cta`           | `string` | The label of the submit button.                   |
| `thanksMessage` | `string` | The thank-you message displayed after submission. |
| `entries`       | `object` | The form submission data.                         |

### Notes

* **Webhook-Based Execution**: Captures and processes form submissions in real-time.
* **Customizable Design**: Supports JavaScript and CSS customization.
* **Ideal for Data Collection**: Useful for surveys, feedback, and automation workflows.

This component is essential for workflows requiring automated form generation and user input processing.


---

# 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.appmixer.com/connector-configuration/utils/forms/form-action.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.
