Home › Forums › Quform WordPress › prevent these kinds of symbols "~!@#$%^&*()_+" input
Can I prevent any symbols input and only allow letter and number?
How to set value not contain any symbols for codes below?
function my_custom_validator($valid, $value, $element) { if ($value != ‘Foo’) { $element->addError(‘The value is not Foo’); $valid = false; }
return $valid; } add_filter(‘iphorm_element_valid_iphorm_1_1’, ‘my_custom_validator’, 10, 3);
Thank you
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.