Settings Form Registration
Module settings are registered alongside the module usingFLBuilder::register_module(). The settings define the configuration interface users see when editing a module.
Basic Structure
Settings are organized into tabs, sections, and fields:Settings Structure
Tabs
Tabs organize settings into logical groups:The
advanced tab is automatically added by Beaver Builder with spacing, visibility, animation, and HTML element settings.Sections
Sections group related fields within a tab:Fields
Fields are the actual input controls:Field Types
Beaver Builder provides numerous field types for different input needs.Text Fields
text
Basic single-line text input:~/workspace/source/modules/button/button.php:256:
textarea
Multi-line text input:editor
WYSIWYG rich text editor:code
Code editor with syntax highlighting:~/workspace/source/modules/button/button.php:337:
Selection Fields
select
Dropdown select menu:button-group
Button group for selecting options:suggest
Autocomplete field with suggestions:Media Fields
photo
Image picker:multiple-photos
Multiple image picker:video
Video URL input:icon
Icon picker:~/workspace/source/modules/button/button.php:266:
Styling Fields
color
Color picker:~/workspace/source/modules/button/button.php:471:
gradient
Gradient builder:typography
Complete typography controls:~/workspace/source/modules/heading/heading.php:214:
border
Border style controls:shadow
Box shadow controls:Dimension Fields
dimension
Top, right, bottom, left value inputs:unit
Single value with unit selector:~/workspace/source/modules/button/button.php:420:
Link & Navigation
link
URL input with target and rel options:~/workspace/source/modules/button/button.php:325:
Other Fields
align
Alignment selector:animation
Animation effect picker:background
Complete background controls:Field Properties
Common Properties
These properties work across most field types:The field type (text, select, color, etc.)
Label text displayed above the field
Default value for the field
Help text displayed below the field
Tooltip text on hover
Placeholder text for text inputs
Enable responsive controls (different values per breakpoint)
Allow field connections to dynamic data
Preview Property
Control how changes preview in real-time:Toggle Property
Show/hide fields based on this field’s value:~/workspace/source/modules/button/button.php:301:
Advanced Settings Form
Every module automatically gets the Advanced tab with standard settings:~/workspace/source/includes/module-settings.php:5:
Complete Example
Here’s a complete settings form for a testimonial module:Next Steps
Custom Modules
Create your first module
Hooks & Filters
Extend with WordPress hooks
Getting Started
Development environment setup