Home › Forums › Quform WordPress › Ajax error when using getValueHtml(checkboxfield)
Hi,
An AJAX error occurs when I try the getValueHtml function on a checkbox field.
The docs say this function handles arrays but I’m not sure.
I can use the getValue() and getValueText() on the field but not getValueHtml().
add_filter('quform_get_value_html_1_20', function ($value, Quform_Element_Field $element, Quform_Form $form) { $orig = $value; $fielddata = $form->getValue('quform_1_20'); $htmlformat = $form->getValueHtml('quform_1_20'); <--- won't work return $value; }, 10, 3);
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
Makes sense.
Suggest adding a note to the docs (getting-form-values-data-types) under “Get a single form value (for safe use in HTML)” saying NOT to use this method when used in conjunction with quform_get_value_html hook.
quform_get_value_html