Hi! I’ve been working with Bricksforge Pro Forms and noticed a potential improvement opportunity regarding repeater field formatting in emails.
Currently, when using a custom HTML email template (not Email Designer), repeater field data is converted to plain text with “+++” separators. This makes it challenging to create well-formatted emails with structured repeater data.
Feature Request / Suggestion:
- Add a dedicated filter for repeater field formatting in emails, something like:
add_filter('bricksforge_pro_forms_repeater_format', function($repeater_data, $repeater_id) {
// Format repeater data here
return $formatted_html;
}, 10, 2);
- Or extend the existing
bricksforge_pro_forms_field_value
filter with a special parameter for repeater fields:
add_filter('bricksforge_pro_forms_field_value', function($value, $field_id, $form_data, $is_repeater) {
if ($is_repeater) {
// Special handling for repeater fields
}
return $value;
}, 10, 4);
This would give developers more control over repeater field formatting in custom HTML email templates, making it consistent with the flexibility provided by the Email Designer.
Would love to hear your thoughts on this! Let me know if you need any additional information or use cases.
Best regards