Quick Start
Get up and running with NetPad in 5 minutes. This guide will walk you through creating your first form and connecting it to MongoDB.
Step 1: Sign Up or Sign Inโ
- Visit your NetPad instance (or
http://localhost:3000for local development) - Click "Sign Up" or use magic link authentication
- Complete the authentication process
Step 2: Create Your First Formโ
You can create a form in three ways:
Option A: Start from Template (Fastest - Recommended)โ
-
Navigate to Form Builder:
- Click "New Form" or navigate to
/builder
- Click "New Form" or navigate to
-
Open Template Gallery:
- Click the "Templates" tab
- Browse templates by category (Business, Events, Feedback, etc.)
-
Choose a Template:
- Click a template card to preview
- Review fields and details
- Click "Use Template" or "Customize"
-
Configure Form:
- Name your form
- Select target MongoDB collection
- Customize fields as needed
Templates provide pre-configured forms for common use cases. See the Template Gallery Guide for details.
Option B: Import from Schemaโ
-
Navigate to Form Builder:
- Click "New Form" or navigate to
/builder
- Click "New Form" or navigate to
-
Connect to MongoDB:
- Enter a MongoDB connection string, OR
- Select from saved connections, OR
- Use auto-provisioned Atlas cluster (if available)
-
Import Schema:
- Click "Import from Collection"
- Select a collection to auto-generate form fields
- NetPad will create fields based on your MongoDB schema
-
Customize Fields:
- Review and adjust field properties
- Add or remove fields as needed
Option C: Build from Scratchโ
-
Navigate to Form Builder:
- Click "New Form" or navigate to
/builder
- Click "New Form" or navigate to
-
Connect to MongoDB:
- Enter a MongoDB connection string, OR
- Select from saved connections, OR
- Use auto-provisioned Atlas cluster (if available)
-
Add Fields Manually:
- Drag fields from the sidebar
- Configure field properties (name, type, validation)
- Add more fields as needed
-
Configure Form Settings:
- Set form name and description
- Configure access control (public, authenticated, or restricted)
- Customize theme (optional)
-
Test Your Form:
- Use preview mode to test the form
- Fill out the form and verify validation works
-
Publish:
- Click "Publish" to make the form live
- Copy the shareable URL
- Share with users or embed on your website
Step 3: Submit Test Dataโ
- Open the published form URL
- Fill out the form
- Submit the form
- Data will be saved to your MongoDB collection
Step 4: View Submissionsโ
- Navigate to your form in the dashboard
- Click "View Responses" or "Analytics"
- See all submissions in a table view
- Export data as JSON or CSV if needed
Example: Contact Formโ
Here's a simple example to get you started:
- Create Form: Name it "Contact Form"
- Add Fields:
- Text field: "Name" (required)
- Email field: "Email" (required, email validation)
- Textarea: "Message" (required, min 10 characters)
- Connect to MongoDB:
- Collection:
contacts - Database: Your chosen database
- Collection:
- Publish: Get your shareable URL
- Test: Submit a test entry
Next Stepsโ
Now that you've created your first form, explore more features:
- Template Gallery - Browse more form templates
- Form Builder Guide - Learn advanced form building
- Field Types - Explore all available field types
- Workflows - Automate processes with workflows
- Data Explorer - Browse and manage your data
Common Questionsโ
Q: Do I need to create the MongoDB collection first?
A: No, NetPad will create the collection automatically when the first submission is made.
Q: Can I edit a published form?
A: Yes, you can edit forms at any time. Changes are versioned, and you can revert if needed.
Q: How do I restrict who can submit?
A: Configure access control in form settings: public (anyone), authenticated (must sign in), or restricted (domain/user whitelist).
For more help, see the FAQ or Form Builder Documentation.