> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.utils.forms.FormTrigger

- Component: `appmixer.utils.forms.FormTrigger`
- Kind: Trigger
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.utils.forms 1.2.2](https://connectors.appmixer.com/connector/appmixer.utils.forms/1.2.2.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.utils.forms/1.2.2/component/appmixer.utils.forms.FormTrigger>

Create forms and collect entries.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| `url` | text | - |
| Logo URL (`logo`) | text | URL of a logo image to display in the form header and footer. |
| Form Title (`title`) | text | Form Title. |
| Form Description (`description`) | textarea | Form Description. |
| Form Fields (`fields`) | expression | Define your form fields. |
| Call To Action (`cta`) | text | Label of the call-to-action button. |
| Thanks Message (`thanksMessage`) | text | Message displayed to the user after successful form submission. |
| Thanks Image URL (`thanksImage`) | text | Image displayed to the user after successful form submission. |
| Script (`script`) | text | Include JavaScript code. For example Google Analytics Tracking code. |
| Stylesheet (`stylesheet`) | text | Include CSS code to customize look&feel of your forms. |

## Output ports

### Port `entry`

Variables are loaded dynamically from `/component/appmixer/utils/forms/FormTrigger?outPort=entry`.

## Full metadata (component.json)

```json
{
  "name": "appmixer.utils.forms.FormTrigger",
  "author": "David Durman <david@client.io>",
  "description": "Create forms and collect entries.",
  "private": false,
  "webhook": true,
  "properties": {
    "schema": {
      "properties": {
        "generateInspector": {
          "type": "boolean"
        },
        "generateEntryOutPortOptions": {
          "type": "boolean"
        },
        "url": {
          "type": "string"
        },
        "logo": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "fields": {
          "type": "object"
        },
        "cta": {
          "type": "string"
        },
        "thanksMessage": {
          "type": "string"
        },
        "thanksImage": {
          "type": "string"
        },
        "script": {
          "type": "string"
        },
        "stylesheet": {
          "type": "string"
        }
      }
    },
    "inspector": {
      "inputs": {
        "url": {
          "type": "text",
          "index": 1,
          "source": {
            "url": "/component/appmixer/utils/forms/FormTrigger?outPort=entry",
            "data": {
              "properties": {
                "generateInspector": true
              }
            }
          },
          "group": "configuration"
        },
        "logo": {
          "type": "text",
          "label": "Logo URL",
          "tooltip": "URL of a logo image to display in the form header and footer.",
          "index": 2,
          "group": "configuration"
        },
        "title": {
          "type": "text",
          "label": "Form Title",
          "tooltip": "Form Title.",
          "index": 3,
          "group": "configuration"
        },
        "description": {
          "type": "textarea",
          "label": "Form Description",
          "tooltip": "Form Description.",
          "index": 4,
          "group": "configuration"
        },
        "fields": {
          "type": "expression",
          "label": "Form Fields",
          "tooltip": "Define your form fields.",
          "index": 5,
          "levels": [
            "ADD"
          ],
          "fields": {
            "label": {
              "type": "text",
              "label": "Label",
              "index": 1
            },
            "description": {
              "type": "text",
              "label": "Description",
              "index": 2
            },
            "type": {
              "type": "select",
              "label": "Type",
              "variables": false,
              "required": true,
              "options": [
                {
                  "content": "Text",
                  "value": "text"
                },
                {
                  "content": "Number",
                  "value": "number"
                },
                {
                  "content": "Date",
                  "value": "date"
                },
                {
                  "content": "Email",
                  "value": "email"
                },
                {
                  "content": "Checkbox",
                  "value": "checkbox"
                },
                {
                  "content": "Color",
                  "value": "color"
                },
                {
                  "content": "Password",
                  "value": "password"
                }
              ],
              "index": 3
            },
            "defaultValue": {
              "type": "text",
              "label": "Default Value",
              "index": 4
            },
            "index": {
              "type": "number",
              "label": "Index",
              "index": 5
            }
          },
          "group": "configuration"
        },
        "cta": {
          "type": "text",
          "label": "Call To Action",
          "tooltip": "Label of the call-to-action button.",
          "defaultValue": "Submit",
          "index": 6,
          "group": "configuration"
        },
        "thanksMessage": {
          "type": "text",
          "label": "Thanks Message",
          "tooltip": "Message displayed to the user after successful form submission.",
          "defaultValue": "Thank you!",
          "index": 7,
          "group": "configuration"
        },
        "thanksImage": {
          "type": "text",
          "label": "Thanks Image URL",
          "tooltip": "Image displayed to the user after successful form submission.",
          "defaultValue": "",
          "index": 8,
          "group": "configuration"
        },
        "script": {
          "type": "text",
          "label": "Script",
          "tooltip": "Include JavaScript code. For example Google Analytics Tracking code.",
          "group": "advanced",
          "index": 1
        },
        "stylesheet": {
          "type": "text",
          "label": "Stylesheet",
          "tooltip": "Include CSS code to customize look&feel of your forms.",
          "group": "advanced",
          "index": 2
        }
      },
      "groups": {
        "configuration": {
          "label": "Configuration",
          "index": 1
        },
        "advanced": {
          "label": "Advanced",
          "index": 2
        }
      }
    }
  },
  "outPorts": [
    {
      "name": "entry",
      "source": {
        "url": "/component/appmixer/utils/forms/FormTrigger?outPort=entry",
        "data": {
          "properties": {
            "generateEntryOutPortOptions": true,
            "fields": "properties/fields"
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
