Title: [Plugin: Formidable Forms] Verify field data
Last modified: August 19, 2016

---

# [Plugin: Formidable Forms] Verify field data

 *  [torweb](https://wordpress.org/support/users/torweb/)
 * (@torweb)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-formidable-forms-verify-field-data/)
 * Is there a way to verify what is entered in a field against a list of possible
   answers. I need to find a way to make sure whoever fills out the form has authorization–
   namely their union card number.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Steph Wells](https://wordpress.org/support/users/sswells/)
 * (@sswells)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-formidable-forms-verify-field-data/#post-1951512)
 * Here’s some example code to add in a new plugin or your theme functions.php. 
   For more support, please post in the Formidable forums.
 *     ```
       add_filter('frm_validate_field_entry', 'check_for_valid_code', 10, 3);
   
       function check_for_valid_code($errors, $field, $value){
       if($field->id == 20){ //change 20 to the id of the field that should be checked
         $codes = 'enter,your,comma,separated,list,of,codes,here';
         $codes = explode(',',$codes);
         if(!in_array($value, $codes)
           $errors['field'.$field->id] = 'That is not a valid code';
       }
       return $errors;
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Formidable Forms] Verify field data’ is closed to new replies.

 * ![](https://ps.w.org/formidable/assets/icon-256x256.png?rev=2588749)
 * [Formidable Forms - Contact Form Plugin, Survey, Quiz, Payment, Calculator Form & Custom Form Builder](https://wordpress.org/plugins/formidable/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/formidable/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/formidable/)
 * [Active Topics](https://wordpress.org/support/plugin/formidable/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/formidable/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/formidable/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Steph Wells](https://wordpress.org/support/users/sswells/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-formidable-forms-verify-field-data/#post-1951512)
 * Status: not resolved