Form Builder
The Form Builder allows you to create dynamic data entry forms based on your MongoDB collection schema. Forms can be saved, versioned, and published for end-user data entry.
Getting Startedโ
Connect to your MongoDB database and select a collection. The Form Builder will automatically analyze sample documents to generate field configurations based on your schema.
Key Featuresโ
- Automatic schema detection from sample documents
- Configure field types, labels, and validation rules
- Add conditional logic to show/hide fields
- Create lookup fields for cross-collection references
- Build computed fields with formulas
- Organize forms into multiple pages
- Version control for form configurations
- Publish forms for public data entry
Use the Document Preview panel on the right to see how your form data will be structured when inserted into MongoDB.
Creating a New Formโ
You can create a form in three ways:
Method 1: Start from Template (Recommended)โ
- Navigate to Form Builder - Click "New Form" from the dashboard or navigate to
/builder - Open Template Gallery - Click the "Templates" tab
- Browse Templates - Explore templates by category or search
- Preview Template - Click a template to see details and fields
- Use Template - Click "Use Template" or "Customize" to apply
- Name Your Form - Enter a descriptive name
- Select Database and Collection - Choose your target database and collection
- Customize - Modify the template to fit your needs
Templates provide pre-configured forms for common use cases. See the Template Gallery guide for details.
Method 2: Start from Scratchโ
- Navigate to Form Builder - Click "New Form" from the dashboard or navigate to
/builder - Name Your Form - Enter a descriptive name and add an optional description
- Connect to MongoDB - Enter a connection string, select from saved connections, or use an auto-provisioned Atlas cluster
- Select Database and Collection - Choose your target database and collection
- Add Fields - Start building your form (see Adding Fields below)
Method 3: Use AI Promptโ
- Navigate to Form Builder - Click "New Form" from the dashboard
- Enter AI Prompt - Describe the form you want to create
- AI Generates Form - NetPad creates fields based on your description
- Review and Customize - Adjust the generated form as needed
Adding Fieldsโ
Method 1: Import from Schemaโ
- Click Import from Collection
- Select a collection from your database
- NetPad analyzes the schema and creates fields automatically
- Review and adjust field mappings as needed
Method 2: Drag and Dropโ
- Open the Field Palette in the left sidebar
- Drag a field type onto the form canvas
- Configure field properties in the right panel
Form Settingsโ
Access form settings from the top toolbar:
General Settingsโ
- Form Name - Display name for the form
- Description - Form description shown to users
- Thank You Message - Message after submission
- Redirect URL - Where to redirect after submission
Access Controlโ
- Public - Anyone with the URL can submit
- Authenticated - Users must sign in
- Restricted - Domain or user whitelist
Appearanceโ
- Theme - Choose color scheme
- Custom CSS - Add custom styles
- Logo - Upload organization logo
- Background - Set background color or image
Testing Your Formโ
Preview Modeโ
- Click Preview to see the form as users will see it
- Test all fields and validation
- Check conditional logic behavior
- Verify data structure in Document Preview
Test Submissionโ
- Fill out the form completely
- Submit test data
- Verify data appears correctly in MongoDB
Saving Your Formโ
Auto-Saveโ
NetPad automatically saves your work every few seconds. You never lose progress and can resume editing anytime.
Manual Saveโ
- Click Save to force save
- Use keyboard shortcut
Cmd/Ctrl + S
Next Stepsโ
- Template Gallery - Start with pre-built templates
- Field Configuration - Configure field properties
- Conditional Logic - Add dynamic behavior
- Form Publishing - Make your form live
- Form Versioning - Manage form versions