Spanish Total.js
English
Documentation For AI agents
Contents

Build a contact form

Build a contact form with required fields and publish it as a web page.

.md GitHub
On this page

This recipe builds a form with a name, an email address and a message, and publishes it as a web page.

Build the form

1. On the start screen, select Web app. Type Demo project in Name and select SUBMIT.

2. Drag Headline into the Container. Double-click its text and type Contact us.

3. Drag Form under the headline. Double-click the form's label, set Name to Contact and Button label to SEND, and select SUBMIT.

4. Drag Textbox into the form. In its settings:

  • Name: Name
  • Read value from: select Generate (it gives name)
  • Placeholder: Jane Doe
  • turn on Required

5. Drag another Textbox under the first one. Set Name to Email, generate the path (email), set Type to Email, Placeholder to jane@example.com and turn on Required.

6. Drag Textarea under it. Set Name to Message and generate the path (message).

The contact form in the editor

Publish it

1. Select SAVE to keep the editable design.

2. Select Publish, then Download HTML, and confirm with PUBLISH.

3. Open Demo project_render.html in your browser.

The SEND button stays disabled until Name and a valid Email are filled in.

The published contact form, filled in

Where the data goes

When someone selects SEND, the form sends its values through its output Submit, for example:

{ "name": "Jane Doe", "email": "jane@example.com", "message": "Hello from Demo project." }

The app that shows the design receives this output. Give its ID to the app's developer: you find it in Inputs and outputs.

Made in Europe