Timeline for Custom validation for a form?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 17, 2019 at 10:25 | comment | added | steniya | how to set validation for size, extension in this manner? And one more question, if there is ajax functionality like"upload" and "remove" how we handle validation for this? | |
Apr 27, 2018 at 22:40 | review | Suggested edits | |||
May 1, 2018 at 9:47 | |||||
Apr 27, 2018 at 22:36 | comment | added | Chris Happy |
For other fields, you got to use: if ($form_state['values']['field_custom']['und'][0]['value'] == 'Error') { //throw error }
|
|
Sep 7, 2015 at 12:36 | comment | added | Guru | If the form is user_registration_form, then it always keeps "[#validate] => Array ( [0] => user_account_form_validate [1] => user_validate_picture )". Suppose i'm going to add custom validation. Then it should be like this "[#validate] => Array ( [0] => user_account_form_validate [1] => user_validate_picture [2] => user_register_validate )". But i want to run "user_register_validate" function at first. | |
Sep 7, 2015 at 12:26 | comment | added | Clive♦ | Which ever is first in the array @Guru | |
Sep 7, 2015 at 12:25 | comment | added | Guru | Suppose i've added custom form validation to a form which have already 2 validation function. Then which is get first preference in drupal 7? | |
Feb 22, 2012 at 12:14 | vote | accept | gilzero | ||
Feb 18, 2012 at 16:52 | history | edited | avpaderno♦ | CC BY-SA 3.0 |
deleted 20 characters in body
|
Feb 18, 2012 at 14:36 | history | answered | Clive♦ | CC BY-SA 3.0 |