Skip to content

When using math hook, form submits if a number is entered in the field whether it is correct or not #283

Open

Description

@CamilleBeaute

Bug report

Summary

When using math hook, form submits if a number is entered in the field whether it is correct or not

Step to reproduce

  1. Added math hook & validation to snippet call
  2. Added math input field
  3. Entered incorrect number answer in math form field
  4. Click submit, form data is submitted via email

Observed behavior

Form submits if a number is entered in the field whether it is correct or not

Expected behavior

Form data should not submit and prompt user to enter the correct solution to the math problem

Environment

MODX 3.0.1-pl
Chrome

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions