This hook is run before a field value is returned in HTML format. Using this hook will affect the way that the value is displayed in HTML notifications and when viewing entries.
quform_get_value_html_X_X
This hook is run for a single field.
Example
12
3
| add_filter('quform_get_value_html_1_3', function ($value, Quform_Element_Field $element, Quform_Form $form) { return '<strong>' . $value . '</strong>'; }, 10, 3); |
add_filter('quform_get_value_html_1_3', function ($value, Quform_Element_Field $element, Quform_Form $form) { return '<strong>' . $value . '</strong>'; }, 10, 3);
- On line 1, replace the
1_3
with the element unique ID
1
2
3
4
5 | function my_get_value_html($value, Quform_Element_Field $element, Quform_Form $form) { return '<strong>' . $value . '</strong>'; } add_filter('quform_get_value_html_1_3', 'my_get_value_html', 10, 3); |
function my_get_value_html($value, Quform_Element_Field $element, Quform_Form $form) { return '<strong>' . $value . '</strong>'; } add_filter('quform_get_value_html_1_3', 'my_get_value_html', 10, 3);
- On line 5, replace the
1_3
with the element unique ID
Parameters
$value
–string
– the current HTML value (already HTML-escaped)$element
–Quform_Element_Field
– the element instance$form
–Quform_Form
– the form instance