Connect
Embed Form
Learn how to embed Journeybee lead referral forms in your application
Journeybee forms can be embedded into any website or application while maintaining full functionality and customization options.
Quick Start
Add Journeybee forms to your website in three steps:
Installation Options
Configuration
The journeybee()
function accepts the following parameters:
Your form’s unique identifier
The container element where the form will be rendered
Configuration options for the form
Customization
Embedding Methods
Modal Form
Inline Form
Events
Form Lifecycle Events
Communication API
Advanced Usage
Pre-filling Form Data
Debug Mode
Error Handling
When embedding Journeybee forms, you’ll receive detailed error information through the onError
callback. Here are the possible error codes and their meanings:
Error Codes
Code | Description |
---|---|
INVALID_FORM | The form UUID is invalid or missing |
NO_FORM_FOUND | The specified form could not be found |
MISSING_CONTACT | Neither email nor phone number was provided |
DUPLICATE_LEAD | This lead has already been submitted |
INVALID_PARTNERSHIP | Invalid partnership configuration or domain |
SERVER_ERROR | An unexpected server error occurred |
NETWORK_ERROR | Failed to connect to the server |
Example Error Handling
Frontend Validation
The form performs immediate validation before submission for:
- Required contact information (email or phone)
- Partner company selection when required
- Partner email address when required
Backend Validation
The server validates:
- Form existence and accessibility
- Partnership configurations
- Duplicate lead submissions
- Data integrity and constraints
Browser Support
Chrome (latest 2 versions)
Firefox (latest 2 versions)
Safari (latest 2 versions)
Edge (latest 2 versions)