Try a form
try_formFill in a form as a respondent would, to check it end to end, as the builder’s Preview does: the answers are checked as the form link checks them (a wrong one is refused with why, and nothing is sent), then make what a response makes, a card or a sheet row, its title starting "Preview: ". On a published form it is a counted response (it takes the next number and counts toward the limit, taken even while closed, no email); on an unpublished one it counts toward nothing. Delete a preview card with change_items when done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | The Form tab, by id or name. Absent: the document’s first Form tab. | |
| answers | Yes | Each answer by its question’s id or prompt, as a respondent gives it: text for short, paragraph, email, link; a number for number and rating; "YYYY-MM-DD" for date; an option for single; a list of options for multi; true for checkbox. On a choice with Other, any other text is the Other answer. A question left out is unanswered. | |
| documentId | Yes | The document (from find_documents). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The document in the editor. | |
| made | Yes | A card on a board, or a row in a sheet. | |
| lines | Yes | Answers left out because their section did not show. | |
| tabId | Yes | The Form tab. | |
| title | Yes | The card’s title, "Preview: ..."; null for a row. | |
| where | Yes | Where it went: the board and column, or the sheet. | |
| itemId | Yes | The card’s id when this call made it (an unpublished form); else null. | |
| number | Yes | The response number a published form gave it (it counts); null when nothing counts it. | |
| documentId | Yes | The document. |