This article will provide a step-by-step guide on enabling users to add new options in Form views.
In Knack, the multiple choice and connection fields provide users with the ability to select from a range of options to effectively categorize and connect their data. By presenting a dropdown menu of choices on a form, users can easily associate the form's record with a specific category or connected record in another table.
For example, in this Donations Manager app, you can allow users to select the referral source:
Requirements
You will need at least one multiple choice and/or connection field to use the "allow new options" feature.
If this your first time creating an app, you'll need to know some basics about adding tables, fields, pages, and views. You can start by reading our Builder Basics section.
Other good resources can be found in our About Your Database and Working With Pages sections of the knowledge base.
Steps
1. Select the Form
In the Pages section of the Builder, select the page where the form containing your multiple choice or connection field is located. Click on the form to open the view editor to access the form settings.
2. Open Edit Input
From the view editor, hover over the multiple choice or connection field in the page preview and click the pen icon to edit the form input.
3. Check the Create Records Checkbox
From the field settings, check the "Create Records" to "Allow users to create new records to choose."
Enabling this feature on a Multiple Choice field will provide users with the option to create a new choice in the Live App when filling out the Form.
Note: Enabling this feature on a Connection field will add a new record in the connected table.
4. Login & Test
After enabling this feature, users will be able to easily add new options by simply clicking on the "Add new option link" located below the form input.
When a user clicks on the "Add a new option" link, a modal popup of the form will appear. Users can then fill out the form, click submit, and their new option will be automatically selected as the field value.
In the Builder, you can easily edit this form by selecting the button next to "Add a new option" for Connection field inputs.
Note: For Multiple choice field inputs, there is no button to select for editing since you are simply creating a new option for the field without adding a new record to the connected table.
And there you have it! You have successfully configured your form to enable users to add additional options.