Your indicated regex pattern is valid.
In taking a look at the plugin’s fields tab, it displays a pattern input possibility for a “number” field input. It actually should not do that because “pattern” is not a valid attribute for the “number” input type (pattern is only an attribute of the text, date, search, url, tel, email, and password HTML5 input types).
Since your regex is valid, and you’re getting invalid results, without additional information I would guess that you have applied the pattern to a number field type. Replace this with a text field input and the pattern will work.
(I hadn’t noticed until you raised this issue that the number field included pattern as a possibility – that will be removed in the next release.)
-
This reply was modified 5 years, 9 months ago by
Chad Butler.
Thanks for the reply. I tried the same pattern [0-9]{3} with a text field as well. But it is still accepting more than 3 digit numbers. Would like to know if I am doing anything wrong and if I need to provide any more information.
-
This reply was modified 5 years, 9 months ago by
swanandhegde.
One other possibility is that this is currently only supported in the plugin’s own registration form. If this is another plugin’s registration form, such as WooCommerce, then it’s not currently supported because WC doesn’t support the attribute.
-
This reply was modified 5 years, 9 months ago by
Chad Butler.
-
This reply was modified 5 years, 9 months ago by
Chad Butler.