Timeline for How to programmatically check whether field on form has changed in hook_form_alter
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 23, 2018 at 1:50 | comment | added | No Sssweat |
Compare the $form default value vs the $form_state value. If they are not equal, then there was a change. You'll want to do this inside a custom form validate or submit function. Use hook_form_alter to add your custom validate or submit function. See: Custom validation for a form? as an example.
|
|
Jan 22, 2018 at 20:34 | history | edited | Pierre.Vriens | CC BY-SA 3.0 |
deleted 25 characters in body
|
Jan 22, 2018 at 20:18 | review | Close votes | |||
Jan 22, 2018 at 20:34 | |||||
Jan 22, 2018 at 20:03 | comment | added | leymannx | Hey hey, what have you tried so far? And what is your exact question? Please update your post to provide specific problems we can help you to solve. | |
Jan 22, 2018 at 19:59 | history | asked | dfish17 | CC BY-SA 3.0 |