create_form
Generate a new Nettskjema form with required title, language, form type, respondent access, and personal-data settings, then include optional elements.
Instructions
Create a new form with the given settings and optional elements.
The six required settings are taken as named parameters so a model cannot omit them. Additional settings can be provided via extra_settings. If a required setting appears in extra_settings, the named parameter takes precedence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | The form's title. | |
| elements | No | Optional list of form elements to include when creating the form. | |
| form_type | Yes | The form type. | |
| language_code | Yes | The form's language code (e.g., "en", "no"). | |
| extra_settings | No | Additional settings beyond the six required ones. | |
| respondent_group | Yes | The respondent group (access control). | |
| collects_personal_data | Yes | Whether the form collects personal data. | |
| sensitive_personal_data_collected | Yes | Whether the form collects sensitive personal data. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |