A connection links one Gravity Forms form to one workbook. It says which form answers go into which cells, and which results come back into which fields. A form can have more than one connection.
Start a connection
- Go to Workbookery → Connected Forms.
- Click Connect a form.
- Choose a form and a workbook. You finish the connection in the form’s settings.
You need a workbook first. If you have none, you see: “Add a workbook before connecting a form.”
The connection screen
The connection name, workbook and version stay at the top. The rest of the settings are on tabs: Inputs, Data lookups & table pasting, Outputs and Options. All tabs are saved together with one save button, and switching tabs never loses what you entered. The editor reopens on the tab you used last. After a save that is refused, the tab with the problem to fix is marked and opened. Without JavaScript, all settings show on one page as before.
Connection
- Connection name: a name you’ll recognize later.
- Workbook and Pinned version: the workbook and the version this form uses. Uploading a new version doesn’t move the form. When a newer version exists, you see Newer version available. Use Review changes & switch to move. When a connection can’t switch to a new workbook version, the Impact tab lists each mapped name that version is missing, with its field, and says what to do next. Buttons for older versions read “Switch back to version N”.
Inputs: form answers sent to the workbook
- Under Send form answers to the workbook, each row pairs a Named range with a Form field. The cell must be a single cell with a plain value, not a formula.
- Input number data type assignments says how to read each number-like answer: plain number, currency, whole number, decimal, percent or choice.
- For a Percent row, choose Whole number (25 = 25%) or Fraction (0.25 = 25%).
- For a Hidden field, choose Treat as Text or Number.
- Send each row of a list to numbered cells is for List fields. See “List fields” below.
Data lookups & table pasting
This tab shows only when an add-on that fills cells, like Data Tables (included with Workbookery), is active. “A lookup fills named cells from an add-on before the workbook calculates.”
The “Add another lookup” button adds a new lookup or table fill right away, without saving first, up to 10 per connection. A lookup added this way can be removed with “Remove this lookup” until the connection is saved.
Outputs: workbook results shown on the form
- Under Put workbook results in form fields, each row pairs a named range with the field that gets the result.
- Show as read-only on the form lets visitors see the result but not type over it. It works only on visible Number, Single Line Text and Paragraph Text fields. Hidden fields are never shown, so they don’t need it.
- Allow HTML in this paragraph lets a Paragraph Text result keep safe HTML. Only users allowed to post unfiltered HTML can turn it on.
- Result fields receive raw values. Workbookery sends the calculated number or date itself, without the Excel cell’s number style. Currency, percent and date results therefore arrive unstyled. Style them in Gravity Forms: for a Number field, use the field’s currency setting, or apply a style with a Gravity Forms calculation or merge tag. A downloaded workbook still keeps every style from your original file.
Options
- If a calculation fails (new connections start with the default set on Workbookery → Settings):
- Stop the submission and show a message: the entry isn’t saved. The message shows in the form’s error banner and on the first visible mapped field. See “What visitors see” below.
- Save the entry without results: the entry is saved, and the result fields stay blank.
- Show results live as visitors type: “Turn this on to show results before the visitor submits. It stays off until you enable it.”
- Results update about 0.6 seconds after the visitor stops typing.
- For slower workbooks, results update when the visitor leaves a field instead.
- Live results are off for very large workbooks. Then results appear when the visitor submits.
- Results for Hidden or admin-only fields aren’t sent live unless you tick Show live for that result.
- Results are always worked out again on submit.
- Allow anonymous API submissions (off unless you turn it on): this is only about submissions sent through the Gravity Forms REST API by someone who isn’t logged in. Normal form submissions in a browser aren’t affected.
- Off: those submissions are refused, and no entry is saved.
- On: anyone who can reach your site’s API can submit the form and run the workbook. That adds load to your server, and someone could try many answers to work out how your results are made.
- Turn it on only when an outside app needs to submit the form without logging in.
- Also calculate entries created by other plugins or the API (off unless you turn it on): this covers entries added by other plugins, by imports, or through the Gravity Forms API.
- Off: the connected result fields on those entries are cleared.
- On: Workbookery calculates from the values saved in the entry and fills in the results. Your If a calculation fails setting applies.
- Entries sent through the API by someone who isn’t logged in still follow Allow anonymous API submissions.
- A large import runs one calculation per entry, so it can be slow. Results are only as good as the values the other plugin saved.
- Recalculate when an entry is edited (off unless you turn it on): results are worked out again when the entry is edited. It applies to edits on the Gravity Forms entry screen, in front-end editors such as GravityView Edit Entry (including people editing their own entries), and through the API. Marking an entry as read or changing its approval in GravityView, or an API update that changes no answer, does not recalculate the entry or add a note.
- Workbook download link (off unless you turn it on): “Saves a download link on the Workbook download field for each new entry. Add that field’s merge tag to a confirmation or notification when you want to show it. Off by default.” The download is for administrators. If you show the Workbook download field in GravityView, Workbookery no longer reports a deprecated hook for that field. Older GravityView still works. Downloaded workbooks recalculate when opened in Excel. Some preview apps that don’t recalculate may show blank outputs.
Required fields hidden by conditional logic no longer stop a calculation. Before, a hidden required field left empty could refuse the form with “This field is required.”, and an edit that hid a required field could clear an entry’s workbook results. When an edited entry can’t be recalculated, its previous results are now kept and an entry note names the field to check. An entry added through the API that can’t be calculated also gets a note.
Each successful calculation also stores how long it took, in seconds, as entry meta named gfxl_calc_seconds. It is written only for a successful submission, including an entry created through the API, and never when staff recalculate an entry. It holds no cell values. It is not in the Gravity Forms entry CSV export or the entry list, but you can read it through the Gravity Forms REST API or GFAPI if you can already view that entry.
Suggest matches
Click Suggest matches to fill empty rows for you.
- A named range that exactly matches a field’s Admin Field Label (same capitals) is matched for you and shows Auto-matched.
- A named range that ends in a Name part, like
client_first or client_last, is suggested for that part of a Name field.
- Fields that can’t send answers are skipped. You see: “Not matched because the field type can’t be sent to the workbook: …”
- Suggestions never replace a row you already saved. Always check each row before you save.
When a save is refused
You see “The connection could not be saved. Check the settings and try again.” Each problem names the named cell and the form field, like “Row TaxRate (Total): …”. Up to five problems show at once.
If a Number field’s number style changes
When a mapped Number field’s number style changes, Workbookery warns and follows the live style instead of refusing the whole form. The warning names the mapping row and the connection. It appears after you save the form, and on the Connected Forms list and the connection editor. Save the connection so the saved row matches the live style.
Calculation logs and export health items now name the mapping row that failed.
Which fields can be used
Fields that can send answers to the workbook (inputs):
- Number (all number styles)
- Single Line Text
- Paragraph Text
- Email
- Phone. The cell gets the number as the visitor sees it, like (720) 555-0100.
- Hidden (choose Treat as Text or Number)
- Drop Down and Radio Buttons. “Dropdown and radio buttons send the choice value, not the label.”
- Multiple Choice, in all four Selection modes (see below)
- Checkboxes and Multi Select (see below)
- Name, part by part (see below)
- Address (see below)
- Date (date picker, date field and date drop-down)
- Time (12-hour and 24-hour)
- Quantity, when it holds one number
- List, row by row (see below)
Fields that can receive results (outputs):
- Number
- Single Line Text
- Paragraph Text
- Hidden
Other field types aren’t offered as outputs. Saving one is refused with: “Results can go into Number, Single Line Text, Paragraph, and Hidden fields.”
These show in the output list, but saving them is refused:
- Required fields. The result is filled in after the visitor submits, so a Required field would stop the form first.
- Number fields with a Gravity Forms calculation. They do their own math. They can send answers, though.
- Product and Total fields.
Fields that can’t send answers: Website, Repeater (and any field inside one), Product and Total. Website can still be used by a Data Tables lookup.
Text answers: spaces, tabs and line breaks at the very start and end are removed. Spaces inside the answer stay the same.
Calculated Number fields as inputs
A Number field with a Gravity Forms calculation can send its value to the workbook.
- The cell gets the value Gravity Forms works out again on your server. For example, 10 + 5 sends 15.
- If conditional logic hides the field, it sends a blank.
- If its calculation reads a field that a workbook result fills, Workbookery uses the value the visitor’s browser sent.
Name fields
- A Name field with parts (First, Last and so on) is sent part by part. Each part shows in the list as its own choice, like “Name: First”. Connect each part you need to its own named range.
- A simple Name (one box) is sent as one answer.
- Parts the form hides aren’t offered. If you hide a part after connecting it, the connection warns you that the cell will be blank.
Address fields
An Address field fills one cell. The parts the visitor fills in are joined with a comma and a space, in the order the form lists them. Parts the form hides are left out.
Checkboxes and Multi Select
- All ticked or selected choices go to one cell, joined with a comma and a space. For example:
Red, Blue.
- They’re listed in the order the form lists the choices, not the order the visitor clicked.
- If nothing is picked, the cell is blank.
- Don’t put commas in Checkboxes or Multi Select choices. Saving the connection is refused with a message that names the choice. Remove the comma from the choice and save again.
- If a Checkboxes field has Other, the typed Other text is not sent. (Radio Buttons and Multiple Choice do send it.)
If a comma is added to a choice later:
- To fix it: remove the comma from the choice, then save the connection again.
- What visitors see: nothing different, on newer and older fields alike. The choice is still sent, so the workbook cell gets an extra comma and can be misread.
- If a Multi Select field uses older storage (it saves picks as plain comma-separated text) and a choice contains a comma, entries that are calculated again later, for example when staff edit them, can’t be split correctly, and their results are left blank. Remove the comma from the choice.
- What you see: a warning notice that names the connection, the field and the choice. The Connected Forms list warns you too, and the connection shows Needs attention.
- The next time you save the connection, it’s refused until the comma is removed: “[named cell] can’t use [field] because the choice [choice] contains a comma. Remove the comma from the choice so the answers can be told apart in one cell.”
Dates
A Date field works with all 7 Gravity Forms date styles:
- mm/dd/yyyy
- dd/mm/yyyy
- dd-mm-yyyy
- dd.mm.yyyy
- yyyy/mm/dd
- yyyy-mm-dd
- yyyy.mm.dd
The date picker, date field and date drop-down all work. A field with no style set is read as mm/dd/yyyy. If the style can’t be read, saving the connection is refused with: “This date field has a date style Workbookery can’t read. Pick one of the date styles in the field’s settings, and try again.”
The workbook gets a real Excel date. A blank date sends a blank. A date typed as year-month-day (like 1979-12-31) into a month-first or day-first field is refused. If a visitor’s date can’t be read, they see: “Enter a valid date.” Once the form is connected, this replaces Gravity Forms’ own date message.
List fields
A List field can send each row to numbered cells, like Item_1, Item_2 and so on. Set this up under Send each row of a list to numbered cells.
- Choose what happens If a visitor adds more rows than cells: Show an error or Ignore the extra rows.
- For each column, choose Treat as Number (for numbers or currency, so sums work) or Text (for words).
- A list can’t read a List field that shows workbook results. Choose the List field visitors fill in.
- The entry shows what was sent, or says when the visitor filled in no rows.
Multiple Choice
How a Multiple Choice field is sent depends on its Selection setting.
Select One works just like Radio Buttons, including Other. If the visitor picks Other, the text they type is sent.
Select Multiple, Select Exact Number and Select a Range send all chosen options to one cell:
- The options are listed in the same order as the field’s choices, not the order the visitor clicked.
- They’re joined with a comma and a space. For example:
Red, Blue.
- If nothing is picked, the cell is blank.
Good to know:
- A choice can’t contain a comma in these three modes. Saving the connection is refused with: “One of this field’s choices contains a comma, so Workbookery can’t tell the choices apart when it sends them together. Turn on Show Values, give each choice a value without a comma, and try again.” Select One allows commas.
- If a comma is added to a choice later, the connection keeps working for the other choices. A visitor who picks that choice sees: “This option can’t be used in the calculator right now. Please choose another option or contact the site owner.” The Connected Forms list warns you. Fix the choice as above.
- Numbers are sent as text. A choice of
007 reaches the cell as the text 007. If your formula needs a number, wrap the cell in VALUE(), like =VALUE(A1). A choice that isn’t a number gives #VALUE!.
- Hidden fields send a blank. If conditional logic hides the field, including one on a hidden page or in a hidden section, it is sent to the workbook as blank when the form is submitted, matching the blank value Gravity Forms saves.
- One field, one cell. You can’t map a single option on its own.
- Never a result field. Multiple Choice can’t receive a workbook result.
- Data Tables: Multiple Choice can’t be used as a lookup source. Radio Buttons can.
Dropdown, radio button, checkbox, multi select and multiple choice answers whose value contains <, >, & or quotes now reach the workbook as typed. Before, the workbook could receive HTML codes such as <, and a checkbox or multi select answer containing < or > could be refused. Entries saved before this update that hold such codes send the plain characters the next time they are recalculated, so those results can change once.
What visitors see when something goes wrong
The Show detailed calculation errors on forms (for testing) setting changes what visitors see. It’s a checkbox on Workbookery → Settings, off unless you turn it on. Only administrators can change it.
Detailed errors off (the usual setting):
- Most problems show: “We couldn’t calculate your results. Please check your answers and try again. If this keeps happening, contact the site owner. (Ref: WB-XXXXXXXX)”
- It shows on the first visible mapped field and in the form’s error banner.
- To look up the reference, go to Workbookery → Tools & Logs. In the Logs section, type the reference in Show this reference and click Show this reference.
Excel errors (like #DIV/0!), whatever the setting:
- Visitors see: “This form could not be calculated. Please contact the site owner and give them this reference. (Ref: …)”
- Administrators always see the cause: which result failed and why.
Answers that can’t be read: the workbook doesn’t run. The field shows “Enter a valid date.” or “Enter a valid value.”
Detailed errors on:
- Everyone, visitors too, sees: “Calculation error {code}: {reason} (Ref: …)”
- Only administrators also see “Input that failed: [input name]”.
- While it’s on, administrators see a reminder: “Detailed calculation errors are showing on your forms. Turn this off before your site goes live.”
Didn’t work?
- Field not in the list? Check “Which fields can be used” above.
- Result field refused on save? Required, calculated Number, Product and Total fields can’t get results. Use a Hidden field, or a Number, Single Line Text or Paragraph Text field with Show as read-only on the form.
- “This field type can’t be sent to the workbook.” That field type can’t send answers. Use one from the input list.
- “Choose which part of … to send to …” Pick a part (like First or Last) for that Name row.
- Date style refused on save? Pick one of the 7 date styles in the Date field’s settings.
- Comma message on save? For Multiple Choice, turn on Show Values and give each choice a value with no comma. For Checkboxes or Multi Select, remove the comma from the choice.
- “This option can’t be used in the calculator right now…” A Multiple Choice choice got a comma after you saved the connection. Fix the choice.
- “Enter a valid value.” The answer can’t be read. Check the answer, and check the field’s choices if they changed.
- “Enter a valid date.” The visitor’s date can’t be read in the field’s date style.
- “We couldn’t calculate your results…” To find out why, look up the reference on Workbookery → Tools & Logs.
- “This form could not be calculated…” A formula gave an Excel error. Log in as an administrator and submit again to see the cause.
- Joined answer looks wrong in Excel? The cell holds text like
Red, Blue. Split it or check it with text functions.
- Live results not showing? Check that Show results live as visitors type is on. Some workbooks are too large for live results. Then results appear when the visitor submits.
- “Needs attention” on Connected Forms? A named range or form field used by the connection is missing. Open it to fix.