Skip to main content

Forms

Add form fields to your templates, and fill them in before the template is inserted.

Let's say you have a template for confirming a meeting. The greeting, the signature, and most of the text are the same every time, but the date, the time, and the meeting link change. Instead of inserting the template and then looking for the parts to edit, you can add form fields for them. When you insert the template, Briskine asks you to fill them in first.

The form helpers work like the HTML form elements with the same names: input, textarea, select, and option. They take many of the same options, like type, value, placeholder, and required. If you've built a form on a web page before, they'll feel familiar.

How forms work​

When you insert a template with form fields, Briskine shows the template in a form dialog, with a field wherever you added a form helper. It looks the same whether you insert the template with a shortcut, from the Briskine Dialog, or from the sidebar.

Fill in the fields, then press Insert, or Enter . The template is inserted with what you filled in, in place of the form fields.

Press Cancel, or Esc , to close the form dialog without inserting anything.

tip

While typing in a textarea, press Ctrl + Enter ( Cmd + Enter on macOS) to insert the template.

The form dialog updates while you fill it in. When part of your template depends on a field, like a discount code that's only inserted when you check a box, you see the change right away.

In the order update below, the greeting, the items, the discount, and even its highlight color change as you fill in the form.

Form fields only show up in the form dialog when they're in the template body. In the subject, or the To, Cc, and Bcc fields, a form field inserts its starting value without asking. You can still use @form there to insert the values of fields from the body.

In the examples below, the Form dialog works like the one Briskine shows you. Fill it in, and the Preview shows what would be inserted. You can also change the template to try out the helpers.

Input​

The input helper adds a field to your template.

Template
Preview
Hi ,

Thanks for reaching out!

To use the value of the field anywhere else in your template, give it an id. The id can be any name. Use a different one for each field, unless you want two fields to share a value.

ids can contain only letters, numbers, _, and -, and must start with a letter (e.g., first_name).

Here are a few examples of how you can use it.

Add a default value​

Use value to give the field a starting value. You can change it before inserting the template, or leave it as it is.

Template
Preview
Hi there,

Thanks for reaching out!

Make a field required​

Add required=true, and Briskine won't insert the template until the field is filled in.

Template
Preview
Your order number is .

Insert a number​

Use type="number" for a field that only takes numbers. min and max set the smallest and largest number you can fill in, and step sets how much the arrows in the field change it.

Template
Preview
We have reserved 2 seats for you.

Insert a date​

Use type="date" for a field with a date picker.

The date is inserted as 2026-12-24. To change the format, put the field in a hidden block, and format it with the moment helper.

Template
Preview
Can we meet on Friday, November 27?

Until you pick a date, moment inserts today's date.

For a date and a time, use type="datetime-local".

Template
Preview
See you on Friday, November 27 at 11:10 AM.

Insert content when a box is checked​

Use type="checkbox" to add a checkbox. A checkbox doesn't insert anything on its own. Use it with the if helper to insert content only when it's checked.

Add checked=true to check the box by default.

Template
Preview
Thanks for your order!
As a thank you, here is 10% off your next order with the code THANKYOU.

Uncheck the box in the Form dialog to see the discount code disappear from the Preview.

Other field types​

Here are all the types you can use with type.

TypeField
textA single line of text. This is the default when you don't add a type.
numberA number.
emailAn email address.
urlA web address.
telA phone number.
dateA date, inserted as 2026-12-24.
timeA time, inserted as 14:30.
datetime-localA date and a time, inserted as 2026-12-24T14:30.
monthA month, inserted as 2026-12.
weekA week, inserted as 2026-W52.
colorA color picker, inserted as #ffcc00.
checkboxA checkbox. It doesn't insert anything. Use it with if.

Dates and times can be formatted with the moment helper.

Form field options​

OptionDescription
idThe name of the field, to use its value with @form.
typeThe type of field. The default is text.
valueThe starting value of the field.
placeholderText shown in the field while it's empty. It's never inserted.
requiredSet to true to make the field required.
checkedSet to true to check the box by default.
min, maxThe smallest and largest number or date you can fill in.
stepHow much the number changes with the arrows in the field.
patternA regular expression the text has to match.
sizeThe width of the field, in characters.
labelA name for the field, read by screen readers.

Textarea​

The textarea helper adds a field for longer text, on several lines. The line breaks are kept when the text is inserted.

Use rows to make the field taller. It also takes the value, placeholder, and required options, the same as input.

Template
Preview
Hi ,

Here are the notes from our call:


Talk soon!

Select​

The select block helper adds a dropdown. Add an option helper inside it for every choice in the dropdown.

Template
Preview
Your Monthly subscription is now active.

The first option is selected by default. Use value on the select to select another one.

Template
Preview
Your Yearly subscription is now active.

Here are a few examples of how you can use it.

Insert a different value than the one in the dropdown​

Use value on an option to insert a different value than the one shown in the dropdown.

Template
Preview
Order status: on its way

Your order is on its way.

Insert a whole paragraph​

Use option as a block helper to insert a longer piece of content when it's selected. The label is what you see in the dropdown.

The content can be on several lines, and can have formatting, variables, or other helpers.

Template
Variables (JSON)
Preview
Hi John,

Thanks for the invitation, I will be there!

Select more than one option​

Add multiple=true to select more than one option. Hold Ctrl ( Cmd on macOS) and click the options to select them. They're inserted separated by commas.

Without a value, no option is selected by default.

Template
Preview
We support Gmail.

Use the values in the rest of the template​

@form has the values of all the fields with an id. Use {{@form.name}}, with the id of the field in place of name, to insert its value anywhere in the template, even before the field.

Template
Preview
Hi ,

...

Thanks again, , and have a great day!

@form works everywhere in the template, including inside other block helpers, like each or site.

Here are a few examples of how you can use it.

Field values​

FieldValue in @form
inputThe text you filled in. Dates and times use the formats in the table of field types.
input type="number"The number you filled in.
input type="checkbox"true when the box is checked, false when it's not.
textareaThe text you filled in, with its line breaks.
selectThe value of the selected option, or its text when it doesn't have a value.
select multiple=trueA list with the values of the selected options.

For options with a whole paragraph, @form doesn't have the paragraph. It has the option's value, or its label when it doesn't have one, so you can check which option was selected.

Insert something else when a field is empty​

Use the or helper to insert something when the field is left empty.

Template
Preview
Hi there,

Fill in a name in the Form dialog to see it in the Preview.

Change how the value is inserted​

Use @form with other helpers to change the value before it's inserted. For example, the capitalizeAll helper capitalizes every word, however you typed it.

Template
Preview
Hi Jane Doe,

To insert dates and times in another format, use the moment helper.

Insert content depending on a value​

Use @form with the if helper to insert content only when a box is checked, or with the compare helper to insert something depending on a number.

Template
Preview
You have 5 seats.

Change the number of seats in the Form dialog to 10 or more, and the discount shows up.

Insert the selected options in another format​

When you select more than one option, @form has a list. Use the list helper to join the options with something other than a comma.

Template
Preview
We support Gmail.

Or use the each helper to insert each option on its own line.

Template
Preview
We support:
- Gmail

Use the same field more than once​

When two fields have the same id, they share one value. Fill in one, and the other one changes too. The starting value comes from the first one.

Template
Preview
Hi ,
...
Thanks again, !

To show the field only once in the form dialog and insert its value in other places, use @form instead.

Fields in a loop​

A field inside the each helper is added once for every item.

Template
Preview
Your plans:
- Gmail:

Select more sites in the Form dialog to add a field for each one.

When the field has a fixed id, like id="plan", every item gets the same field, so they all share one value.

Hidden​

The hidden block helper shows its content only in the form dialog. Content inside it isn't inserted with the rest of the template.

Use it for fields that only change what the template inserts, like a checkbox or a date you format with moment. Or add a note for your teammates to explain how to fill in the fields.

Template
Preview
Your order has shipped! The tracking number is .

Add ~ inside the curly braces, like {{~#hidden}} and {{/hidden~}}, to also remove the line breaks before and after the block. Otherwise, the template is inserted with an empty line where the block was.

hidden works on its own too, without forms, to leave notes in any template.