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

Pattern Input Mask - It is impossible to enter a specific digit after a fixed numeric part #9612

Closed
JaneSjs opened this issue Mar 18, 2025 · 1 comment
Assignees
Labels
input_mask question user issue An issue or bug reported by users

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Mar 18, 2025

T22385 - Bug related to Mask:Pattern in type:text
https://surveyjs.answerdesk.io/internal/ticket/details/T22385


The following pattern mask is enabled: A1019999. A101 is a fixed part and 9999 allows users to enter digits. However, with such an input mask, respondents cannot enter 1 as the first value:

{
  "pages": [
    {
      "name": "page1",
      "elements": [
        {
          "type": "text",
          "name": "question1",
          "maskType": "pattern",
          "maskSettings": {
            "pattern": "A1019999"
          }
        }
      ]
    }
  ]
}
2025-03-18_17-14-07.mp4
@JaneSjs JaneSjs added bug input_mask user issue An issue or bug reported by users labels Mar 18, 2025
@OlgaLarina OlgaLarina self-assigned this Mar 18, 2025
@OlgaLarina OlgaLarina added question and removed bug labels Mar 19, 2025
@OlgaLarina
Copy link
Collaborator

Need to update mask
"pattern": "A\1\0\19999"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
input_mask question user issue An issue or bug reported by users
Projects
None yet
Development

No branches or pull requests

2 participants