🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials November 1, 2026

How to Build Fill-in-the-Blank Sentence Fields in Gravity Forms

GravityExtra
How to Build Fill-in-the-Blank Sentence Fields in Gravity Forms

Some questions are not really questions. “I, ____, would like to join the club as a ____ member and will pay ____ by ____” is a statement with gaps, and people understand it best when they see it whole. The same goes for a pledge, a booking request, a short declaration on a sign-up form, or a language exercise where a learner fills in the missing verb. Gravity Forms, like most form builders, asks one thing at a time: one label, one input, next field. That works for most data, but it breaks a sentence into pieces, and the person filling in the form never reads the statement they are completing.

This guide looks at when a fill-in-the-blank layout makes a form better, the usual workarounds and what they cost, and how to build real fill-in-the-blank fields in Gravity Forms with the Gravity Forms Fill-in-the-Blank add-on, including the parts that matter after the form is sent: checking every value on the server, using single blanks in merge tags and conditional logic, exporting them, and scoring gap-fill exercises.

When a sentence beats a list of questions

A list of separate fields is the right choice when the answers are independent: name, e-mail, phone, address. A sentence is better when the answers only make sense together. Three situations come up again and again.

Agreements and declarations

A club membership, a volunteer sign-up or a team registration often ends with a short statement: who is joining, at what level, what they will pay and by when. If those parts are spread over five fields, the statement disappears. People answer the questions but never see what they are agreeing to as a whole. Written as one sentence with the gaps inside it, the same form reads like the statement it is, and the person filling it in can check it at a glance before sending.

Requests with a natural shape

“Please book court North for 4 players on Saturday, reference CT2041.” A request like that is quicker to fill in as a sentence than as four fields with four labels, because the sentence already explains what goes where. Fewer labels also means a shorter form on a phone.

Learning and practice

Teachers have used gap-fill exercises forever: “Mis padres ____ en Puebla.” The gap is the question, and the sentence around it is the context the learner needs. A form that turns each gap into a separate field with its own label loses that context completely.

The usual workarounds, and what they cost

One field per gap, with the sentence in the labels

The most common approach is to cut the sentence into pieces and use each piece as a label: “I,” then a name field, “would like to join as a” then a drop-down, and so on. It looks odd, it falls apart on a phone, and screen-reader users hear disconnected fragments. Every change to the wording means editing several labels.

An HTML block with hand-written inputs

Some people write the sentence in an HTML field and add their own input tags. It looks right, but Gravity Forms does not know those inputs exist: nothing is validated, nothing is stored in the entry, and no merge tag can reach them. It also needs custom code for every form.

One big text box

Others simply ask people to type the whole statement into a paragraph box. That gives you a sentence, but not the data. The name, the amount and the date are all buried in free text, nothing is checked, and the export is a column of prose someone has to read by hand.

What all three miss is the combination you actually need: the sentence on the screen, and every gap as a real, checked, stored answer behind it.

Fill-in-the-blank fields in Gravity Forms

The Fill-in-the-Blank add-on adds one new field type to Gravity Forms. You write the sentence or paragraph once and put each blank in square brackets: [name] for text, [fee:number] for a number, [email:email] for an e-mail address, [due:date] for a date, and [plan:select=Junior|Adult|Family] for a drop-down. On the form, the inputs appear inside the text, as wide as you choose, and wrap with the words on a small screen.

A club membership form written as one sentence: I, Robin Hale, would like to join Meadowfield Tennis Club on the Junior plan, with the name, membership type, season fee, payment date and e-mail address typed into inputs inside the text, and a Parent or guardian field shown below because Junior was chosen
A membership agreement as one sentence with five blanks inside it; choosing Junior in the drop-down blank shows the guardian field.

Each blank becomes a sub-input of the field, the same way the first and last name are parts of a Name field. That one design choice is what makes the rest of Gravity Forms work per blank, and it is what the workarounds above cannot give you.

Every blank is checked on the server

Each blank has its own settings: a label for screen readers, a required flag, a placeholder, a width, a number or date range, and for text blanks an optional pattern with your own message. When the form is submitted, the server checks every blank against its type and settings. A number has to be a number in range (“045.00” is stored as 45; “12abc” is refused). An e-mail address has to be complete. A date has to exist (no 30th of February) and sit inside the range. A drop-down answer has to be one of the listed choices, even if someone edits the page to send something else. Tags and stray characters are removed from text.

A small script previews the same checks while people type, so mistakes show up early, but the browser never has the last word. The server decides, and only clean values reach the entry. A refused blank gets a message that names it (“Season fee in dollars: please enter a number from 40 to 400”), and the input is marked as invalid for assistive technology.

Merge tags, conditional logic and export per blank

Because each blank is a real sub-input, it behaves like any other answer in Gravity Forms:

  • Merge tags: {Membership agreement:1} is the whole filled-in sentence, with the answers in bold in HTML e-mails, and {Membership agreement:1.3} is a single blank. A subject line like “New member: {Membership agreement:1.1} ({Membership agreement:1.2})” works out of the box.
  • Conditional logic: each blank is listed as “Membership agreement (Membership type)”. Show a “Parent or guardian” field when the plan blank is “Junior”, or send the coaches a notification only for junior members. The logic runs live on the page and again on the server.
  • Entries and export: the entry screen shows the filled-in sentence; the CSV export has one column per blank plus the full sentence as it was submitted, so you get both the statement and the data.

Gap-fill exercises with server-side scoring

Turn on the quiz mode of a field and each blank gets correct answers, points and feedback. Answers can have alternatives (“Paris|paris city”), the marking can ignore upper and lower case and extra spaces, numbers are compared as numbers, and curly apostrophes count as straight ones. A blank without answers is simply not marked.

A Spanish lesson gap-fill form: Me llamo Ana y soy de México. Mis padres vive en Puebla. Tengo 20 años y el cielo es azul, with the answers typed into inputs inside the sentences and a second part with one more gap
A language-class gap-fill: the learner types the missing words inside the sentences; the answers are marked on the server.

Two details matter for any quiz on the web. First, the correct answers never leave the server: they are not in the page source, so a curious learner cannot find them there. Second, the score is worked out on the server from the saved answers after the form is sent. Anything the browser sends that looks like a score is ignored, so a score can only come from the answers themselves.

The score of each field, the total and the marking of every blank are stored on the entry. Learners can see their result in the confirmation with {Label:ID:score} and {Label:ID:feedback}; teachers see the marking on the entry screen, can add score columns to the entry list and the export, and can send a “Top marks” message with ordinary notification logic on the total.

Accessible by design

A sentence with inputs inside it is only a good idea if everyone can use it. The field is a fieldset with your field label as its legend. Every blank has its own label, hidden visually because the sentence is the visual label, but announced by screen readers. Every input is also described by the whole sentence, with the blanks named in brackets, so a screen-reader user hears the complete statement they are filling in. The inputs follow the order of the sentence, so the Tab key moves through them in reading order, and the field follows right-to-left text when the page does.

How it compares with our other add-ons

Fill-in-the-Blank does one job and fits next to our other form tools:

  • Our Survey, Quiz & Poll Tools add-on grades quizzes built from normal choice fields and adds Likert, ranking and rating fields. Fill-in-the-Blank marks typed answers inside a sentence.
  • Our Scored Assessments add-on adds points per category to reach an outcome. Fill-in-the-Blank marks each blank right or wrong and adds up the points, without categories.
  • Our Dynamic Labels add-on changes label text from a value such as a URL parameter or the logged-in user. It does not put inputs inside text; Fill-in-the-Blank does.
  • Our Field Group Container add-on groups whole fields in a styled box. Fill-in-the-Blank is a single field whose parts are the blanks of one sentence, and it can sit inside such a group.

Rewording without losing data

Forms change. A season fee becomes a monthly fee, a sentence gets a new clause, a blank moves. Each blank keeps its sub-input number for as long as it keeps its name, so you can reword the sentence, move blanks around or add new ones, and the answers already stored stay attached to the right blank. The full sentence is saved with each entry when it is submitted, so you can always see exactly what someone read and completed at the time.

More ideas

  • Volunteer shifts: “I can help on [day:date] from [start:select=9 am|1 pm|5 pm] for [hours:number] hours.”
  • Sponsorship pledges: “I pledge $[amount:number] for every lap [runner] completes.”
  • Order notes: “Please write [message] on the card and deliver it to [recipient].”
  • Vocabulary practice: a paragraph with ten gaps, each worth one point, and a confirmation that lists the words to practise.
  • Event check-in: “We are a team of [size:number] from [school], arriving by [transport:select=Bus|Car|Train].”

Getting started

  1. Install the add-on and activate your licence key under Forms → Settings → Fill-in-the-Blank.
  2. Open a form and add a Fill in the Blank field from Advanced Fields.
  3. Write your sentence with the blanks in square brackets and give each blank a label and its checks.
  4. Use the field’s merge tags in your notifications and confirmations, then try the form on a phone.

The Fill-in-the-Blank documentation covers the blank syntax, every setting, the checks, merge tags and the quiz mode in detail, with more examples. When a form reads like the sentence it is, people understand it faster and you still get every answer as clean, separate data. Get the Gravity Forms Fill-in-the-Blank add-on and let your forms speak in sentences.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr