HTML5/JavaScript Web-to-Record Form
The Enabled (HTML5/JavaScript) option generates a simple HTML snippet for your website, and we highly recommend it because this option is straightforward and convenient.
Furthermore, the embedded form will be automatically updated to reflect any changes in your database setup. It fully supports all built-in TeamDesk functionality, such as form behaviors, dynamic column calculations, reference columns, and validation rules.
When you generate a web-to-record form and select the Enabled (HTML5/JavaScript) option, you will see the following form:
Web-to-Record

The available options are described below:
- Status
- Set this to the Enabled (HTML5/JavaScript) option.
- Impersonate as
- To simplify form design, you can choose a form tailored for an existing user. Just select the user’s name from the dropdown. Consequently, the web-to-record form will resemble and function like the form displayed to the specified user. If you require a unique form, you can create a new user, customize a form behavior for this user, and select the user’s name from the dropdown.
- Button Label
- Here, you can assign a label to the button that will submit the form data to the database.
- After Form Submit
- You have two options:
- The Display Message option will show a confirmation message.
- The Redirect to URL option will direct the user to a specific URL.
- Message
- Enter the HTML to display after submission. Embed a value with
<% expression %>, as in Formula - XHTML. A single numeric, date, time, or timestamp column reference uses the column’s display format. For example,<p>Your booking is confirmed for <% [Booking Date] %>.</p>uses the format set for the booking date. For a calculated date, specify the format explicitly, as in<% Format([Booking Date] + 1d, "d") %>. - URL
- Enter the address to open after submission. As with a Navigate action’s custom URL, use
<% expression %>for parameters and format non-text values explicitly. For example, use?day=<% Format([Booking Date], "yyyy-MM-dd") %>when the destination expects a date such as2026-11-25.
HTML5/JavaScript Code
After saving your changes, the HTML code will be generated.

You should copy and paste the HTML snippet code onto your website page.
If you don’t have a website page and need a public URL for the embedded web-to-record form, consider creating an HTML page in the database resources and pasting the snippet code into it. Make sure you’ve checked the
Allow public access to this resourceoption for that HTML page.