default helper function allows you to specify a fallback value when a shortcode field is empty. This ensures your emails always display something meaningful, even when data is missing.
Syntax
The syntax for this helper function is:defaultis the function nameshortcode_valueis the primary value you want to displayfallback_default_valueis what will be displayed if theshortcode_valueis empty
Examples
Using a String Fallback
lead.full_name exists:
lead.full_name is empty:
Using Another Shortcode as Fallback
company.contact_phone exists:
company.contact_phone is empty:
Best Practices
- Always use default values for critical personalization fields
- Keep default values generic but professional
- Test your templates with both filled and empty fields
- Consider using other shortcodes as fallbacks when appropriate
- Preview your templates to ensure the fallbacks work as expected

