I'm trying to hide/disable field when the user select an option (Example at images). Image A [![enter image description here][1]][1] Image B [![enter image description here][2]][2] I've tried to used AJAX, JS or #states from Drupal 7, and it works, but when the user press "Submit" and the "Validate" method throws a "form set error", the selected item does not correspond to the status of the fields (Disable/Hide). It takes the default values from $form element definition. Is there any way to do it? Thanks for comment and help! PD: Ajax callback is associated to the radio group and it change the field states. [1]: https://i.sstatic.net/nHim2.png [2]: https://i.sstatic.net/IpMyd.png