Representatives and automatically detecting keywords
Hi all,
I have a field in my database called email_key and when I create a simple module, it tries to validate it as an email. I know of representatives and turning them off, but what about turning off the validation part? How do I do that? I need fuel to treat email_key as a regular text field--ultimately, I would want it to make sure it has 32 characters only--but I can figure that out myself.
Thanks in advance guys.
Ron
Comments
public $auto_validate_fields = array( 'email|email_address' => 'valid_email', 'phone|phone_number' => 'valid_phone' );
This basically says any field that has "email" or "email_address" in it will automatically try and validate it. Overwriting this value should make that problem go away:
public $auto_validate_fields = array( 'phone|phone_number' => 'valid_phone' );