Skip to main content
deleted 25 characters in body
Source Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182

In rules you have the ability to check whether a field in a form has been changed by negating node-unchanged:field-xyz = 123.

I want to check whether a field has changed programmatically with the $form and $form_state.

How would you do this?

Thanks in advance.

In rules you have the ability to check whether a field in a form has been changed by negating node-unchanged:field-xyz = 123.

I want to check whether a field has changed programmatically with the $form and $form_state.

How would you do this?

Thanks in advance.

In rules you have the ability to check whether a field in a form has been changed by negating node-unchanged:field-xyz = 123.

I want to check whether a field has changed programmatically with the $form and $form_state.

How would you do this?

Source Link

How to programmatically check whether field on form has changed in hook_form_alter

In rules you have the ability to check whether a field in a form has been changed by negating node-unchanged:field-xyz = 123.

I want to check whether a field has changed programmatically with the $form and $form_state.

How would you do this?

Thanks in advance.