Create form
create_formCreate a new form in a project. The form is on no page yet, so the live site does not change; a form section shows it by referencing its id (form.formId). For a scored form (quiz, scorecard, calculator), options carry points in their field's optionScores, keyed by option id: in score mode the points are summed and scoring.results shows the card whose scoreRange (inclusive, whole numbers) holds the total, scoring.gate before_results with gateFields asks for contact details before the result shows, calculator.display writes the total as a formatted amount such as $9.6M a year, calculator.stats adds up to 4 figures worked out from the total (such as a 3-year value or a payback time), and calculator.parts with each option's optionParts shows the visitor's own split of the total as bars. The schema is checked first: duplicate field names or option values, points keyed to options that do not exist, points in the wrong shape for resultType, and gateFields naming missing fields are refused; score range gaps and overlaps come back as warnings. A retry makes a second form: if the answer was lost, look for it with list_forms before trying again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Form name shown in the dashboard | |
| projectId | Yes | The project ID | |
| formSchema | Yes | Fields, groups, displayMode, scoring and delivery settings |