Timeline for Field Validation and Highlighting
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 30, 2013 at 16:02 | comment | added | Hanno Fietz |
@user785179 - this must be some unrelated problem. It sounds like the FAPI element you mean to work with is not there, or is incomplete, or whatever. I recommend setting a breakpoint on the call to form(_set)_error and examine the variables. Note that form_error really only wraps form_set_error , all the former does is figure out the first parameter to the latter from the FAPI array.
|
|
Jan 29, 2013 at 22:34 | comment | added | user785179 | Unfortunately your suggestions did not work for me. Neither form_error or form_set_error worked in highlighting the error field. I do get the error message, though. I am using hook_node_view and drupal_get_form to add a form to a node. Maybe this is why? Oh well | |
Sep 6, 2012 at 13:45 | history | edited | Hanno Fietz | CC BY-SA 3.0 |
added 264 characters in body
|
Apr 5, 2012 at 9:00 | history | answered | Hanno Fietz | CC BY-SA 3.0 |