Support » Plugin: Fast Secure Contact Form » [Plugin: Fast Secure Contact Form] Set Field type as number

  • Resolved Tanya

    (@pjtna)


    Hi,

    I would like to know if it possible to set the field type as a number between 0 and 100.

    For example, if the person was to put in a winning margin in a basketball game, I would like them to be able to type 12 into the field. I would like an error to pop up if they happen to put in text or a number below 0/above 100.

    Thanks.

    http://wordpress.org/extend/plugins/si-contact-form/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Don’t worry, I purchased Gravity Forms.

    Plugin Author Mike Challis

    (@mikechallis)

    Yes this can be done with the Regex feature.

    How to add extra fields

    Validation regex:
    Use to validate if form input is in a specific format. Example: If you want numbers in a text field type but do not allow text, use this regex: /^\d+$/ Can be used for text, textarea, date and password field types.

    Regex fail message:
    Use to customize a message to alert the user when the form fails to validate a regex after post. Example: Please only enter numbers. For use with validation regex only.

    faq

    FAQ

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Fast Secure Contact Form] Set Field type as number’ is closed to new replies.