PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Generate message box warning if value is outside range

  1. I need to generate a error warning via a javascript message box alerting the user that their zipcode/location is outside the bounds of my client's service area. I also need this to be evaluated in real time after the 5th digit is entered so the user is alerted immediately as opposed to when the form is submitted. Any suggestions as to where to start would be appreciated.

    Posted 11 years ago on Monday July 23, 2012 | Permalink
  2. We can't really help you with JavaScript or jQuery functionality like this. You want to look at client-side validation using jQuery so you can provide instant feedback on entered values to your users.

    Here is one such tutorial online:
    http://www.position-relative.net/creation/formValidator/demos/demoValidators.html

    Posted 11 years ago on Monday July 23, 2012 | Permalink
  3. I didn't realize the "number" field validates for range of values. Not perfect but it'll work for now.

    Posted 11 years ago on Tuesday July 24, 2012 | Permalink
  4. OK, very good. Hope that works out for you.

    Posted 11 years ago on Tuesday July 24, 2012 | Permalink