Skip navigation
ArtNeedsHelp
Currently Being Moderated

How  to have a text box have a minimum amount of characters?

Sep 16, 2012 6:48 PM

Tags: #text #characters #minimum

Please let me know.

 
Replies
  • Currently Being Moderated
    Sep 16, 2012 7:07 PM   in reply to ArtNeedsHelp

    You can't really force a textfield to have a minimum number of characters nless you plan to add some of your own to fill in the extras.  If you want to require a user to enter a minimum number of characters then you can check the length of the text in the textfield before you allow it to be processed and notify the user that they need to enter a minimum numbers of characters to be able to proceed.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 16, 2012 8:00 PM   in reply to ArtNeedsHelp

    You shouldn't expect people to be doing your coding for you. 

     

    Here is part of what you would need for a textfield named minText...

     

    if(minText.length < minimumCharsRequired){

          // do something

    }

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 17, 2012 4:17 AM   in reply to ArtNeedsHelp

    If you just copied and pasted it as shown, it will not work.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points