Learn how to utilize and style the n8n Form Trigger to automate your intake workflows effectively. This guide will walk you through creating and customizing forms directly in n8n, eliminating the need for external tools.
What Is the n8n Form Trigger?
The n8n Form Trigger allows you to create forms directly within n8n workflows for capturing data efficiently. Unlike earlier implementations that relied on external webhooks and website modifications, recent updates now enable users to customize forms with HTML and CSS. By using a central tool like n8n, businesses can streamline their intake workflows, maintain design consistency, and eliminate dependency on third-party form builders.
Prerequisites for Setting Up n8n Form Trigger
Before you begin, ensure you meet the following requirements:
prerequisites
- A running and properly configured n8n instance.
- Access to an n8n instance that supports the latest form-trigger updates, including custom styling.
- Basic understanding of HTML and CSS to customize the forms.
Steps to Create and Customize an n8n Form
Follow this step-by-step guide to create and style your intake form in n8n.
steps
Add the Form Trigger Node
Open n8n and add the Form Trigger node to your workflow.Configure the Node
Specify the input fields you want to capture. For example, name, email, and message.json{ "nodes": [ { "parameters": { "inputs": [{ "name": "Name", "type": "string" },{ "name": "Email", "type": "string" }], "submitLabel": "Submit" }, "name": "Form Trigger", "type": "n8n-nodes-base.formTrigger" } ] }Set Basic Details
Add a form title and description to provide your users with clarity about the form's purpose.Remove n8n Attribution (Optional)
Go to the "Options" section of the Form Trigger node and enable the "Remove Attribution" setting if you prefer to exclude n8n branding.Enable Custom Form Styling
Under "Options," enable Custom Form Styling. This will allow you to insert your own HTML and CSS for forming the look and feel of the form.Insert HTML/CSS
Provide your custom code in the form styling field. For example:html<style> body { font-family: Arial, sans-serif; background-color: #f9f9f9; text-align: center; } h1 { color: #4CAF50; } button { background-color: #4CAF50; border: none; color: white; padding: 10px 20px; text-align: center; text-decoration: none; font-size: 16px; cursor: pointer; } button:hover { background-color: #45a049; } </style> <h1>Contact Us</h1>Test the Form
Copy the Production URL or Test URL and preview the form in your browser. Ensure it is functional and aligns with your custom styling.Launch Your Workflow
Once satisfied, activate your workflow in n8n and share the form's URL with your users.
Common Errors and Verification
When implementing the n8n Form Trigger, you may encounter the following challenges:
Benefits and Use Cases of Custom Styled n8n Forms
FAQ
How can I add a custom logo to an n8n form?
You can include a custom logo using HTML and inline CSS in the "Custom Form Styling" option within the Form Trigger node settings. Place the logo inside an <img> tag and use CSS to style it appropriately.
Can I deploy n8n forms on my own domain?
Yes, if you are self-hosting n8n, you can configure your domain settings to point to the form URLs, effectively making them available under your own domain.
Why are my custom styles not applying to the n8n form?
Ensure you have correctly written the CSS rules and that the "Custom Form Styling" option is enabled in the Form Trigger node. Use browser developer tools to inspect and debug your code if needed.
Official reference: n8n documentation.