Liking cljdoc? Tell your friends :D

reformation.validateform


alert-if-neededcljs

(alert-if-needed opt-map)

Alerts the user by creating a popup containing information regarding which fields are filled in improperly

Alerts the user by creating a popup containing information regarding which fields are filled in improperly
sourceraw docstring

build-error-messagecljs

(build-error-message invalid-labels)

builds an error message off the fields that fail .checkValidity made up of the failed fields labels

builds an error message off the fields that fail .checkValidity made up of the failed fields labels
sourceraw docstring

check-field-validitycljs

(check-field-validity fields)

returns a vector of the labels of all fields that fail .checkValidity

returns a vector of the labels of all fields that fail .checkValidity
sourceraw docstring

date?cljs

(date? date)

Returns true if a string is in the expected format of a date which is XX-XX-XXXX or XX/XX/XXXX

Returns true if a string is in the expected format of a date which is XX-XX-XXXX or
XX/XX/XXXX
sourceraw docstring

digits?cljs

(digits? s)

Returns true if a string consists only of numerical digits.

Returns true if a string consists only of numerical digits.
sourceraw docstring

email-address?cljs

(email-address? email)

Returns true if the email address is valid, based on RFC 2822. Email addresses containing quotation marks or square brackets are considered invalid, as this syntax is not commonly supported in practise. The domain of the email address is not checked for validity.

Returns true if the email address is valid, based on RFC 2822. Email
addresses containing quotation marks or square brackets are considered
invalid, as this syntax is not commonly supported in practise. The domain of
the email address is not checked for validity.
sourceraw docstring

get-required-fieldscljs

(get-required-fields opt-map)

get all fields labeled as required in the opt-map

get all fields labeled as required in the opt-map
sourceraw docstring

phone-number-symbols?cljs

(phone-number-symbols? s)

Returns true if a string consists only of numerical digits, or symbols found in a phone number

Returns true if a string consists only of numerical digits, or symbols found in a phone number
sourceraw docstring

phone-number?cljs

(phone-number? num)

checks if a phone number is the correct format, must have 10-12 numbers and can be combinations of any of the following forms: 123.456.7890 +1 123 456 789 1234567890 1-123-456-7777

checks if a phone number is the correct format, must have 10-12 numbers and can be combinations
of any of the following forms:
123.456.7890
+1 123 456 789
1234567890
1-123-456-7777
sourceraw docstring

present?cljs

(present? x)

Returns false if x is nil or blank, true otherwise.

Returns false if x is nil or blank, true otherwise.
sourceraw docstring

validate-formclj/s≠

clj
(validate-form &_)

Unspecified for clj

Unspecified for clj
cljs
(validate-form)
source (clj)source (cljs)raw docstring

validate-form-feedbackclj/s≠

clj
(validate-form-feedback &_)

Unspecified for clj

Unspecified for clj
cljs
(validate-form-feedback opt-map)

Validates the form and gives feedback on which fields were invalid. Takes the schema of the application in a vector as an argument, which is the same schema you passed to render-application

Validates the form and gives feedback on which fields were invalid. Takes the schema of the application in a vector as an argument, which is the same schema you passed to render-application
source (clj)source (cljs)raw docstring

zip-code?cljs

(zip-code? zip-code)

Returns true if the input string is of the zipcode format of 00000-0000 or 00000

Returns true if the input string is of the zipcode format of 00000-0000 or 00000
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close