Home › Forums › Quform WordPress › Pre Validation Form for Quform 2
Hi Ally,
1. For Quform 2, I would like to know how to use the $result variable.
2.when I added some custom code to the my_pre_validate function, it throws “There was a problem The response from the server was invalid or malformed”
function my_pre_validate(array $result, Quform_Form $form) { // Custom code //custom code start $namefield = $form->getElement('quform_73_23'); if( $namefield->isEmpty() { $namefield->setRequired(true); } // custom code end
return $result; } add_filter('quform_pre_validate_1', 'my_pre_validate', 10, 2);
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.