Skip to main content

Ignored fields

caution

Because mosparo ignores some fields, it is possible to bypass the field validation. Read more about this in Bypass protection.

Automatically ignored fields

mosparo automatically ignores the following fields:

  • All fields which do not have a name (attribute name)
  • HTML field type
    • password
    • file
    • hidden
    • checkbox
    • radio
    • submit
    • reset
  • HTML button type
    • submit
    • button
  • Fields containing _mosparo_ in the name

Manually ignored fields

CSS class

If you give a form field the CSS class mosparo__ignored-field, the field will not be processed by mosparo.

JavaScript initialisation

When initializing the JavaScript functionality, you can define the selector with which the fields are searched (see Parameters of the mosparo class).