Radio field and client side validation
-
Sark,
Am using the latest WC Fields Factory plugin and have client side validation enabled. One of the products I sell has two fields the customer needs to interact with. One field is a text field and the other is a radio field. Upon error my error message is displayed next to the text field but not next to the radio field.
If I change the radio field to any other field, client side validation displays correctly. There seems to be a problem with just the radio field. Here is what is recorded in the debug logfile:
Notice: Undefined index: logo_1 in C:\server\site\wordpress\wp-content\plugins\wc-fields-factory\classes\wcff-product-form.php on line 333
Logo_1 refers to the radio field.
This is line 313 of wcff-product-form.php:
$res = apply_filters( ‘wccpf/validate/type=’.$field[“type”], $_REQUEST[ $field[“name”] . “_” . $i ] );
I realize php notices are basically an annoyance and can be turned off but in this case the annoyance causes the display of my validation message to not appear next to the radio field.
Any help will be greatly appreciated.
Thanks
- The topic ‘Radio field and client side validation’ is closed to new replies.