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


Well-known member
Normally when I fail to put something in a form, it will pop up with:
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?


Well-known member
I'm assuming this is in a DataWriter? Make sure you have requiredError set:
				'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."


Well-known member
@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: -

'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?