Skip to main content
0 reactions

How to Set Up and Run the Event Sign-up Form for n8n

Card titled Set Up the n8n Event Sign-up Form, labelled n8n tutorial setup guide, showing a form, a table and a reply node, with three facts: n8n 2.49.5 in Docker, Seats checked before saving, and One booking per email and session.

You have the source code of Event Sign-up Form for n8n. This guide takes it from the zip file to a published sign-up form on your own computer: three pages where visitors choose a session and their seats, a check that seats are left and that the same email hasn’t booked already, and a last page that greets each visitor by name.

By the end, the form is open at http://localhost:5678/form/event-signup, and the Sign-ups table holds your first booking.

Cost: free. Everything runs on your own computer, with no accounts or API keys. n8n’s Community Edition costs nothing to self-host. Docker Desktop (opens in a new tab) is free for personal use, education and small businesses (fewer than 250 employees and less than $10 million in yearly revenue); larger companies need a paid Docker subscription.

Every screen and output on this page is real, run with n8n 2.49.5 and Docker Desktop on macOS.

Get the Source Code

Get the complete source code of Event Sign-up Form for n8n on Dewiride Store → (opens in a new tab)
The archive holds the two workflows and the Docker Compose file this guide sets up and runs.

Prerequisites

Step 1: Unzip the Source Code

Open Terminal and go to the folder that holds the zip, such as Downloads:

TerminalBash
cd ~/Downloads

Unzip it:

TerminalBash
unzip event-signup-form-n8n-1.0.1.zip

It creates a folder named event-signup-form-n8n. Go into it:

TerminalBash
cd event-signup-form-n8n

The folder holds the two workflows in workflows, compose.yml for n8n, .env.example with two optional settings, and a README.

Step 2: Start n8n

Already run n8n 2? Skip to Step 4 and import the workflows into your own n8n.

compose.yml runs n8n 2.49.5 in Docker, reachable only from your computer. Start it:

TerminalBash
docker compose up -d

docker compose reads compose.yml in this folder, and up -d starts n8n in the background. If the n8n image isn’t on your computer yet, Docker downloads it first. When the last line says Started, n8n is running:

Output (the lines that matter)Plain text
Volume event-signup-form-n8n_n8n_data Created
Network event-signup-form-n8n_default Created
Container event-signup-form-n8n-n8n-1 Started

Step 3: Create Your Owner Account

Open http://localhost:5678 in your browser. The first time, n8n asks for an owner account: enter your email address, name and a password, and click Next.

The n8n Set up owner account form with empty Email, First Name, Last Name and Password fields and the Next button.
Create the owner account of your n8n.

n8n then shows a few questions. Answer or skip them until n8n opens. How to Install n8n with Docker shows these first screens.

Step 4: Import the Two Workflows

Import the setup workflow first. Click + at the top of the left sidebar, then New workflow. Click ⋯ next to the workflow name, then Import › From file, and choose set-up-sign-ups-table.json in the workflows folder.

The menu next to the name of a new n8n workflow, opened at Import with the choices From URL and From file.
Import › From file loads a workflow file.

If n8n asks Importing this from an AI tool?, click Skip. It offers to connect AI tools to n8n, which this guide doesn’t need.

The n8n dialog Importing this from an AI tool? offering to connect AI tools, with the Skip and Connect n8n buttons.
Click Skip: this guide needs no AI tools.

The workflow opens as Set up the Sign-ups table. Now import event-sign-up-form.json the same way, into a second new workflow. It opens as Event sign-up form:

The Event sign-up form workflow on the n8n canvas: On form submission, Your booking, A few more questions, Find bookings for the session, Check the booking and Can we book it?, which leads to Save the sign-up and Confirmation, or to Not booked, under a yellow note.
The sign-up form, from its first page to its two endings.

On form submission, Your booking and A few more questions are the three pages of the form. Find bookings for the session reads the bookings already saved, Check the booking checks the seats and the email, and Can we book it? sends the booking to Save the sign-up and Confirmation, or to Not booked, which tells the visitor why.

Step 5: Create the Sign-ups Table

Open Set up the Sign-ups table and click Execute at the bottom of the canvas. n8n says Workflow executed successfully, and both nodes turn green:

The Set up the Sign-ups table workflow after a run: the manual trigger and the Create the table node are green, each passing on 1 item.
Both nodes ran: the Sign-ups table exists.

The Sign-ups table now exists, with the columns name, email, session, seats, topics and heard_from.

Advertisement

Step 6: Set Your Sessions and Seats

Open Event sign-up form and double-click Your booking. Under Form Elements, open Dropdown, then Field Options. Each Option is one session; replace the two samples with your own, and use Add Field Option for more:

The Your booking node with the Which session? dropdown open, showing the options Saturday 12 December, 10:00 and Saturday 12 December, 14:00.
Change these options to your own sessions.

Close the node and double-click Check the booking. The two seat settings are at the top of its code: SEATS_PER_SESSION is the number of seats in each session (40), and MAX_SEATS_PER_BOOKING the most seats one person can book at a time (6). Change the numbers to suit your event:

The code of the Check the booking node, starting with SEATS_PER_SESSION set to 40 and MAX_SEATS_PER_BOOKING set to 6.
The two seat settings sit at the top of the code.

You can also change the form’s title, its questions and the texts of its pages. Keep the field names Name, Email, Which session? and How many seats?, because Check the booking reads them by name.

Step 7: Publish the Form

Close the node, click Publish, then Publish in the dialog:

The Workflow published dialog of n8n, saying the production Form URL can now be used, with the Got it button.
The form is live once the workflow is published.

The form is now open at this address:

Form addressPlain text
http://localhost:5678/form/event-signup

Step 8: Make a Test Booking

Open the form address in your browser. Type a name and an email address and click Next. On the second page, choose a session and the number of seats:

The Your booking page of the form with Saturday 12 December, 10:00 chosen as the session, 2 in How many seats? and the Next button.
The second page: the session and the seats.

Click Next, answer the two last questions and click Book my seats. The last page confirms the booking:

The last page of the form: You’re booked! Thanks, Asha Rao. You’re booked for Saturday 12 December, 10:00: 2 seats.
The visitor sees their booking.

Open Overview › Data tables › Sign-ups. The booking is a row, with the topics and the answer to How did you hear about us? in the last two columns:

The Sign-ups data table in n8n with one row: Asha Rao, asha@example.com, Saturday 12 December, 10:00 and 2 seats.
Each booking becomes a row in Sign-ups.

When a Booking Can’t Be Made

The form saves a booking only when it passes the check. Otherwise the last page tells the visitor why, and nothing is saved. Here the seat limit was set to 3, and the session was already full:

The last page of the form when a session has no seats left: Sorry, this session is full. All seats for Saturday 12 December, 14:00 are taken. Please choose another session.
When the seats run out, nothing is saved.

These are all the last pages a visitor can see:

WhenThe last page says
The booking was savedYou’re booked!, with the name, the session and the seats
The same email already booked that sessionYou’re already booked
The session has no seats leftSorry, this session is full
Fewer seats are left than asked forNot enough seats left, with how many are left
The number of seats is below 1, above the maximum or not a whole numberPlease check the number of seats

The email check ignores capital letters, so ASHA@example.com counts as the same email as asha@example.com.

Clean Up

To stop n8n, run this in the folder:

TerminalBash
docker compose down

It stops n8n and removes its container:

Output (the lines that matter)Plain text
Container event-signup-form-n8n-n8n-1 Removed
Network event-signup-form-n8n_default Removed

Your workflows and the bookings stay in Docker’s n8n_data volume, so docker compose up -d brings everything back.

Warning: docker compose down -v also deletes the volume, with every workflow and booking in it. It can’t be undone.

Troubleshooting

ProblemCauseFix
Problem submitting response on the form’s last page, and the run shows Data table with name "Sign-ups" not foundThe Sign-ups table is missingRun Set up the Sign-ups table (Step 5)
Conflicting Form Path when you publishAnother published workflow already uses the address event-signup, such as an earlier import of this formUnpublish one of them, or change Form Path under On form submission › Options in one of them
Cannot GET /form/event-signup right after docker compose up -dn8n is still startingWait until docker compose logs shows Editor is now accessible via, then reload the page
port is already allocated when n8n startsAnother app uses port 5678, such as another n8nStop it, or run echo "N8N_PORT=5701" >> .env to use port 5701. Then run docker compose up -d --force-recreate (why it’s needed).

FAQ

Can I use my own n8n instead?

Yes, if it runs n8n 2. Skip Steps 2 and 3 and import the two workflows into it. They were tested with n8n 2.49.5.

Can people outside my computer use the form?

Not at a localhost address, which always means the visitor’s own computer. A form for the public needs n8n at a public address with HTTPS.

Can two people get the last seat?

Only if they click Book my seats at the very same moment. The form checks the table when each booking arrives, so two bookings that arrive together can both see the same free seat.

Can the Sign-ups table show times in my time zone?

Yes. Add a line such as GENERIC_TIMEZONE=Asia/Kolkata, with your own time zone, to a file named .env in the folder, and run docker compose up -d again.

Does it work on Windows and Linux?

It has been tested on macOS so far.

Conclusion

You took the Event Sign-up Form from its zip to a published form: n8n running in Docker, the two workflows imported, the Sign-ups table created, your sessions and seat limits set, and a first booking saved. From now on, every booking is checked before it’s saved, and every visitor learns what happened to theirs.

To see how a multi-page form like this is built, Part 5 of the n8n Tutorial builds the first version step by step.

Additional Resources

n8n, Docker and other names mentioned are trademarks of their respective owners. JD Bots isn’t affiliated with or endorsed by n8n GmbH or Docker, Inc.

0 comments