Replies: 2 comments
-
;;;;;;;;;;;;;
;; pattern ;;
;;;;;;;;;;;;;
(defgeneric pattern (clog-form-element)
(:documentation "Get/Setf form element regular expression pattern.
(see JavaScript RegExp object for specifics)
Form validation pattern. validate-on-submit fields with input
will validate against their pattern if set on submit.
In cases where a specific input type is not supported like
(date, week, etc.) Pattern can be set to ensure the expected results.
This works since Input type will fall back to a text input."))
(defmethod pattern ((obj clog-form-element))
(property obj "pattern"))
(defgeneric (setf pattern) (value clog-form-element)
(:documentation "Set pattern VALUE for CLOG-FORM-ELEMENT"))
(defmethod (setf pattern) (value (obj clog-form-element))
(setf (property obj "pattern") value))
example - "[A-Za-z]{3}" only letters max 3
…On Sat, Apr 13, 2024 at 12:54 AM aykaramba ***@***.***> wrote:
I have a text field that where I want users to only be able to input
numbers and not letters. Any suggestions on what I should think about or
Google on how to perform such testing? What might be the best approach?
—
Reply to this email directly, view it on GitHub
<#340>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACYUEFLMAWU6IJSOEJOMHYLY5C3CFAVCNFSM6AAAAABGFFALHSVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGQ4TOOBVGU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Ohhh, I see. Okay great, thank you kindly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a text field that where I want users to only be able to input numbers and not letters. Any suggestions on what I should think about or Google on how to perform such testing? What might be the best approach?
Beta Was this translation helpful? Give feedback.
All reactions