Custom Code Fields
Add custom HTML, CSS, and JavaScript to your forms with the HTML Editor or Smart Code Visual Builder. Create unique layouts and interactive elements.
Overview
Custom Code fields allow you to add HTML, CSS, and JavaScript directly to your forms. Perfect for creating unique layouts, adding rich content, embedding media, or building interactive elements that go beyond standard form fields.
HTML Editor Mode
Write raw HTML, CSS, and JavaScript code directly.
- ✓ Full control over markup
- ✓ Custom styling with CSS
- ✓ Interactive JavaScript
- ✓ Embed external content
Smart Code Visual Builder
Drag-and-drop interface for building custom layouts.
- ✓ No coding required
- ✓ Pre-built components
- ✓ Live preview
- ✓ Export clean code
HTML Editor Mode
For developers who want complete control, the HTML Editor allows you to write custom HTML, CSS, and JavaScript.
What You Can Build
Custom Layouts
Create multi-column layouts, grids, and unique content structures.
Styled Content Boxes
Add notices, alerts, feature highlights, and promotional banners.
Media Embeds
Embed YouTube videos, image galleries, or product demos.
Interactive Elements
Add tabs, accordions, tooltips, and dynamic content.
Security & Sanitization
Woo Form Builder uses WordPress's wp_kses() function to sanitize custom code, ensuring only safe HTML is rendered.
Security Note
Administrators and users with unfiltered_html capability can use any HTML. Other users are restricted to safe tags only. This prevents XSS attacks and malicious code injection.
Allowed HTML Tags
The following tags are allowed for users without unfiltered_html capability:
Structure
Content
Media
Common Use Cases
1. Product Feature List
Example Output:
Premium Features Included
- ✓Lifetime updates and support
- ✓Unlimited form submissions
- ✓Advanced conditional logic
- ✓Smart pricing calculations
Show Code
2. Pricing Table
Example Output:
- ✓ 1 Website
- ✓ Basic Support
- ✓ 1 Year Updates
- ✓ 5 Websites
- ✓ Priority Support
- ✓ Lifetime Updates
- ✓ Unlimited Sites
- ✓ VIP Support
- ✓ White Label
Show Code
3. Image Gallery
Example Output:
Show Code
JavaScript Functionality
Add interactive behavior with JavaScript. Common examples include calculators, dynamic content, and form enhancements.
Example: Price Calculator
Smart Code Visual Builder
For users who prefer not to write code, the Smart Code Visual Builder provides a drag-and-drop interface.
🎨 Canvas Interface
Drag elements onto a visual canvas and see changes in real-time.
- • Visual layout editor
- • Property panels
- • Live preview
- • Undo/redo support
🧩 Pre-built Components
Choose from dozens of ready-made elements and customize them.
- • Headings & text blocks
- • Images & galleries
- • Buttons & links
- • Containers & layouts
Learn More About Smart Code
Check out our comprehensive Smart Code System Guide for detailed tutorials, video walkthroughs, and advanced techniques.
Best Practices
💡 Tips for Custom Code Fields
Build Without Code
Try the Smart Code Visual Builder for drag-and-drop custom layouts
Explore Smart Code Builder →