Announcement

Collapse
No announcement yet.

How do i ensure a user type 8 digits plus 2 letters in Input filed?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do i ensure a user type 8 digits plus 2 letters in Input filed?

    I am working on a project that has a dummy loging page which i only want to ensure that a user types 6 digits and 2 letter into the input filed without registering, to let him/her jump to a specific page. i am really trying but cant get it, if possible pls. help. I have several logins, but this trick is just a way of ensuring a user types as mentioned above.

  • #2
    choose the "input mask" style and use the following mask: ######??
    # stands for digits only
    ? stands for letters only

    Comment


    • #3
      Slim, you are right, but to make myself very clear - i want a script to do this for me. the masking is interupting some of my script to execute, so if there is a scripting method i will appreciate a sample.

      Comment


      • #4
        See the input's On Key event.
        Attached Files
        Bas Groothedde
        Imagine Programming :: Blog

        AMS8 Plugins
        IMXLH Compiler

        Comment


        • #5
          Thanks for your concern, but the input OnKey event does not check limitation or minimum of 8 digits. my concern is to limit user alphanumeric keys to 8 digits eg 18763765jk. pls see if you can get me something precise. Thanks ur anticipated cooperation.

          Comment


          • #6
            Originally posted by Kasito View Post
            Thanks for your concern, but the input OnKey event does not check limitation or minimum of 8 digits. my concern is to limit user alphanumeric keys to 8 digits eg 18763765jk. pls see if you can get me something precise. Thanks ur anticipated cooperation.
            I gave you an example of 6 digits + 2 characters, please see if you can at least try to understand the example code and work out a (really simple and obvious) modification so it will fit your needs.
            Bas Groothedde
            Imagine Programming :: Blog

            AMS8 Plugins
            IMXLH Compiler

            Comment

            Working...
            X