Form Write Tool
form-writeCreate or update forms. Creation requires type, name and the full initial fields list. Updating fields replaces the full list and deletes omitted fields; preserve existing field IDs. Omit fields to change form settings only. Order/contact forms require email, and order forms require a service-bearing field. Field edits are blocked for forms with white-labeled services.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| info | No | Form description/instructions shown to users. Optional. | |
| name | No | Form name. Required for "create", optional for "update". | |
| type | No | Form type. Required for "create". | |
| action | Yes | Action to perform. | |
| coupon | No | Enable coupon field on order forms. Only applicable to order forms. | |
| fields | No | Form fields. Required for "create" (min 1). For "update": include id to edit, omit id to create new, fields not listed are deleted. | |
| form_id | No | Form id. Required when updating an existing record. | |
| folder_id | No | Folder ID to organize the form. Set to null to remove the form from all folders; omit to leave it unchanged. The folder must match the form type. | |
| access_key | No | URL-safe access key for the form. Optional, auto-generated if not provided. | |
| redirect_url | No | Redirect URL after contact form submission. Only applicable to contact forms. | |
| has_sidebar_link | No | Show link in client portal sidebar. Only for order and onboarding forms. |