How can I get custom Form API validation to highlight a field the same way the failed #required validation does? (See attached graphic)
Note Graphic:
1) (Green Line) Company Name is empty. '#required' Error is noted and field is highlighted red.
2) (Blue Line) Website is incorrect. 'Custom Validation' Error is noted, but field is NOT highlighted.
How can I automatically highlight the 'Website' field on validation fail and remove it upon success?
Currently using: form_set_error('', t('Your website address is incorrectly formatted.'));
See