Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multipletext numeric validator allows letter e #9190

Open
yogat3ch opened this issue Dec 19, 2024 · 0 comments
Open

Multipletext numeric validator allows letter e #9190

yogat3ch opened this issue Dec 19, 2024 · 0 comments

Comments

@yogat3ch
Copy link

yogat3ch commented Dec 19, 2024

Describe the bug
I'm running the Wordpress SurveyJS plugin Version 1.12.4.
I'm using a multipletext question type with the following JSON:

 {
      
          "type": "multipletext",
          "name": "NY_fee_suggest_spring",
          "visibleIf": "{NY_fee_change_spring} = true",
          "title": "What is a reasonable Spring season vending fee that includes additional funding for promotional efforts (considering that the current vendor fee is $200 for the season or $20 per week)?",
          "items": [
            {
              "name": "Per season",
              "inputType": "number",
              "title": "Per season ($)",
              "validators": [
                {
                  "type": "numeric",
                  "text": "Value must be a number greater than 0",
                  "minValue": 0
                }
              ]
            },
            {
              "name": "Per week",
              "inputType": "number",
              "title": "Per week ($)",
              "validators": [
                {
                  "type": "numeric",
                  "text": "Value must be a number greater than 0",
                  "minValue": 0
                }
              ]
            }
          ]
        
        }

Each of the multipletext items has a numeric validator.
Because the field is a "number" field, I can't enter any of the letters of the alphabet when I try, except for the letter e. This letter e also seems to be missed by the validator. Here's a short video demonstrating what happens in Preview mode.

Steps to reproduce

  1. Go to the Survey
  2. Click at least one month checkbox in the first question
  3. Type 2 or greater for the second question, and hit next.
  4. Scroll to Q11, answer yes, a question will reveal
  5. enter e for one of the fields
  6. Hit next

Expected behavior
Entering the letter e should show the error message "Value must be a number greater than 0" when clicking the next button and prevent further progress.

Screenshots
See video

Please complete the following information:

  • Browser: Chrome
  • Browser version: 131.0.6778.140
  • JS framework/library: Wordpress plugin
  • SurveyJS version: 1.12.4
  • Device: Apple M1 Pro running Sonoma 14.6.1 (23G93)

Thanks for the exceptional plugin. The straightforward implementation of complex survey logic is surprisingly easy with the sleek interface!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant