How do we do validation with editable fields. I need to validate a field of statuses. If a user has a certain roll, they shouldn't be able to change the status to "New" but can change the status to "complete" - just as an example.

tried hook_form_alter, but it doesn't even call. Any suggestions?

Searched for this before and all the results come up for the D6 installation.

Thanks for your help

Comments

StevenWill’s picture

I also need to be able to use hook_form_alter.

drjonez’s picture

what about using hook_entity_presave ?

The function runs but I haven't gotten very far (yet)