Validation on fields occurs for context reactions even if those reactions are not configured to be included for the context being edited. This is a drawback because it prevents decent validation from occurring.

To test:

  1. add #required => TRUE to a context reaction's form field
  2. Create a context that does not include that reaction
  3. Attempt to save the context

The form will not validate, stating that the field in the your reaction is required, despite that reaction not being configured for the context.

Ideally, the validation should only occur for enabled reactions.

Comments

guardiola86’s picture

Issue summary: View changes

I'm having the same issue. I'm wondering if this is a bug in the module? I think marking a field in a context reaction as required should be possible.
Probably you don't remember after 5 years, but did you find a solution?

guardiola86’s picture

Priority: Normal » Major