- Updated the Form Builder documentation to include integration details with the Process Builder, outlining how to connect forms to processes and manage form data. - Added a new section on Process Builder integration, detailing API endpoints for form selection and loading forms by URL parameters. - Improved the Process Builder documentation with instructions for adding form tasks, selecting forms, and handling form data within processes. - Updated last modified dates for documentation files to reflect recent changes.
6.9 KiB
Form Builder Documentation
Overview
The Form Builder is a powerful drag-and-drop interface for creating dynamic forms. It provides an intuitive, visual way to build forms by selecting components, configuring their properties, and arranging them in your desired layout. Perfect for creating everything from simple contact forms to complex multi-step surveys. Forms can be used independently or integrated with the Process Builder for workflow automation.
For technical implementation details, please refer to Form Builder Technical Appendix
Getting Started
Accessing the Form Builder
- Navigate to
/form-builder
in your browser - You'll see a three-panel interface:
- Left: Component Library
- Middle: Form Canvas
- Right: Configuration Panel
Quick Start Guide
-
Create a New Form
- Click "New Form" in the header
- Enter a form name and description
- Start adding components
-
Add Components
- Drag components from the left panel
- Or click components to add them to the end
- Components are organized by category for easy finding
-
Configure Components
- Click any component in the canvas to select it
- Use the right panel to configure its properties
- Changes are previewed in real-time
-
Save and Preview
- Click "Save" to store your form
- Use "Preview" to test the form
- Access saved forms via "Manage Forms"
Available Components
Basic Inputs
Perfect for collecting simple text and numeric data:
-
Text Field: Single line text input
- Use for: Names, titles, short answers
- Features: Placeholder text, help text, validation
-
Text Area: Multi-line text input
- Use for: Comments, descriptions, long answers
- Features: Resizable, character count option
-
Number: Numeric input field
- Use for: Age, quantity, numeric values
- Features: Min/max limits, step values
-
Email: Email address input
- Use for: Contact forms, user registration
- Features: Built-in email validation
-
Password: Secure password input
- Use for: Login forms, security inputs
- Features: Password masking, strength indicators
Selection Inputs
For choosing from predefined options:
-
Select Dropdown: Single selection menu
- Use for: Country selection, categories
- Features: Search, option groups, custom values
-
Checkbox Group: Multiple choice selection
- Use for: Multiple selections, preferences
- Features: Select all, option layout control
-
Radio Group: Single choice selection
- Use for: Exclusive choices, yes/no questions
- Features: Button or traditional style
Date and Time
Temporal input components:
-
Date Picker: Date selection
- Use for: Birthdays, scheduling
- Features: Date range limits, format options
-
Time Picker: Time selection
- Use for: Scheduling, time slots
- Features: 12/24 hour format, minute steps
-
Date & Time: Combined selection
- Use for: Event scheduling, appointments
- Features: Single field for date and time
Advanced Components
Specialized input types:
-
File Upload: File input field
- Use for: Document upload, image submission
- Features: File type restrictions, size limits
-
Repeater: Repeatable field groups
- Use for: Multiple entries, dynamic lists
- Features: Add/remove controls, ordering
-
Group: Field organization
- Use for: Related fields, form sections
- Features: Collapsible, conditional display
Layout Components
Form structure and organization:
-
Heading: Section titles
- Use for: Form sections, categories
- Features: Multiple heading levels
-
Paragraph: Descriptive text
- Use for: Instructions, help text
- Features: Rich text formatting
-
Divider: Visual separator
- Use for: Section breaks
- Features: Various styles
Form Configuration
Basic Settings
- Form name and description
- Success/error messages
- Submit button text
- Form layout options
Validation Options
- Required fields
- Input patterns
- Custom error messages
- Cross-field validation
Advanced Settings
- Form submission behavior
- Success/failure redirects
- Custom CSS classes
- Event handlers
Process Builder Integration
The Form Builder integrates with the Process Builder to create workflow-driven forms:
Connecting Forms to Processes
-
Create and Save Your Form
- Design your form in the Form Builder
- Save the form with a clear name and description
- Forms must be saved before they can be used in processes
-
Using Forms in Process Builder
- In Process Builder, add a Form Task to your process
- Select your form from the Form Selector dropdown
- The form will be presented to users when they reach this task in the workflow
-
Form Data in Processes
- Data submitted through forms becomes available as process variables
- Use form data to drive process decisions in gateways
- Reference form fields in scripts and conditions
Form URL Parameters
- Forms can accept URL parameters to pre-populate fields
- Process variables can be passed to forms as parameters
- Use the
formId
parameter to load a specific form
Best Practices
Form Design
- Group related fields together
- Use clear, concise labels
- Provide help text for complex fields
- Maintain consistent styling
- Consider mobile users
Validation
- Validate on the appropriate event
- Provide clear error messages
- Show validation status clearly
- Use appropriate validation rules
User Experience
- Keep forms as short as possible
- Use appropriate field types
- Provide clear instructions
- Show progress in multi-step forms
- Ensure keyboard navigation
Managing Forms
Saved Forms
- View all forms in the management interface
- Search and filter forms
- Duplicate existing forms
- Archive unused forms
Form Actions
- Preview: Test the form
- Edit: Modify form structure
- Delete: Remove unused forms
- Export: Save form configuration
Form Analytics
- View submission statistics
- Track completion rates
- Identify problem fields
- Monitor usage patterns
Troubleshooting
Common Issues
-
Form Not Saving
- Check your connection
- Ensure form has a name
- Verify all components are valid
-
Components Not Dragging
- Clear browser cache
- Check for JavaScript errors
- Ensure proper mouse/touch interaction
-
Validation Not Working
- Verify validation rules syntax
- Check field names are unique
- Ensure validation is enabled
-
Form Not Appearing in Process Builder
- Verify the form was saved successfully
- Check user permissions
- Refresh the Process Builder page
Getting Help
- Check the technical documentation
- Contact support team
- Submit bug reports
- Request features
For technical details about implementation, component structure, and development guidelines, please refer to the Technical Appendix.
Last updated: June 10, 2024