Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

If you use the required attribute instead of the required class the browser will force the field to have a value on all submissions including saving as a draft, rejecting, and returning a section. Using the required class only forces fields to have a value on the approve action. In most instances this makes more sense.

Require Fields Only When They Are Visible and Active

Sometimes you want to require a field but only when it is visible and active. Just using the require class won't work because that always requires the field to have a value.  Here are a few examples where that doesn't work:

...