Sterc / FormIt

A dynamic form processing Snippet for MODX Revolution
https://docs.modx.com/current/en/extras/formit
33 stars 58 forks source link

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

Open CamilleBeaute opened 1 year ago

CamilleBeaute commented 1 year ago

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