Non-descript form error... "Please enter a valid value."

Jaxel

Well-known member
Normally when I fail to put something in a form, it will pop up with:
Code:
Please enter a value for the required field 'field_name'.

However, with this new form field I am working on, I am getting this non-descript error that doesn't tell me which field I am missing... Is this normal?
 
I'm assuming this is in a DataWriter? Make sure you have requiredError set:
PHP:
				'tag' => array('type' => self::TYPE_STRING, 'required' => true, 'maxLength' => 25,
						'verification' => array('$this', '_verifyBbCodeId'),
						'requiredError' => 'bbcm_errorInvalidId'
				),

When I forget to put 'tag' in, it comes up with "Please enter a valid tag."
 
@Jeremy - I'm stuck with a similar problem. My addon throws following error -

XenForo - Error
Please enter a value for the required field 'note_text'.

I tracked down the error to the following line in my DataWriter: -

Code:
'note_text' => array('type' => 'string', 'required' => true) ,
Turns out that if I set 'required'=>false, it works fine.

I'm wondering what exactly is the error hinting at? Why is my data-writer failing?
 
Top Bottom