formcycle 8.3.6 - JavaScript for forms
    Preparing search index...

    Type Alias FormVruleType

    FormVruleType:
        | "posinteger"
        | "plzDE"
        | "posmoney"
        | "integer"
        | "url"
        | "posmoneyOptionalComma"
        | "number"
        | "money"
        | "ipv4"
        | "phone"
        | "onlyLetterNumber"
        | "time"
        | "onlyLetterSp"
        | "email"
        | "dateDE"
        | "text"
        | "regexp"

    Default or predefined data types for input fields. The following are currently available:

    • dateDE: Allows only German-style dates (DD.MM.YYYY), e.g. 22.05.1990.
    • email: Allows only valid (international) email addresses, e.g. james@john.org or θσερ@εχαμπλε.ψομ.
    • integer: Allows only integers, that is numbers without a decimal point, e.g. 3, 0, or -21.
    • ipv4: Allows only IP4 addresses, e.g. 127.0.0.1 or 10.42.42.13.
    • money: Requires the input to be a valid amount of money, i.e. a number with exactly two decimal digits, e.g. 2,00, -3,95, 0,00 or 897345,38.
    • number: Allows only numbers, including numbers with a decimal point, e.g. 0.03, -99.2, or 42.
    • onlyLetterNumber: Allows only letters, numbers, and spaces.
    • onlyLetterSp: Allows only letters and spaces.
    • phone: Allows only valid phone numbers, e.g. 0234995483 or +49 351 4459654.
    • plzDE: Allows only postal code from Germany, i.e. exactly 5 digits, e.g. 02349. Does not check whether such a code is actually registered within Germany.
    • posinteger: Allows only positive integers, e.g. 0, 3, oder 123.
    • posmoney : Requires the input to be a valid amount of money, not including negative numbers, e.g. 0,00 or 2,34.
    • posmoneyOptionalComma: Requires the input to be a valid positive amount of money, with the decimal digits being optional, e.g. 0,00, 0, 3,4, or 3.
    • regexp: Allows the user who creates the form to enter a custom (JavaScript flavor) regular expression for validation.
    • text: Applies no restriction and allows every input.
    • time: Requires the input to be a valid time, in the format hh:mm, e.g. 22:05 or 03:42.
    • url: Allows only URLs, including the protocol, e.g. http://example.com or https://www.james.org.