Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2009

    Validating Input Values in Text field

    Hello all, i am trying to implement a TextField where users will have to input values in a certain format with numbers and alphabets, examples are like "NE40.0" or "35SW", "45NW24" etc. How can i validate that the user has put in the correct format. I know its possible to use an ItemStateListener but i am stuck with which comparing method to use or how to compare the strings.

    Please any other ideas?

    Thank you.

  2. #2
    Registered User
    Join Date
    Sep 2007

    Re: Validating Input Values in Text field

    Hi iparrot ,
    The simpler way is when ever the user submits the form before that take the input field value and check the and alert the user if it is wrong format.

  3. #3
    Registered User
    Join Date
    Aug 2010

    Re: Validating Input Values in Text field

    if you know what must be entered, what about using a choice group (combo box)?

Similar Threads

  1. Adding contact field values
    By siva_321 in forum Symbian
    Replies: 2
    Last Post: 2009-10-22, 13:48
  2. Simple text input field
    By erst in forum Symbian
    Replies: 15
    Last Post: 2007-04-03, 06:11
  3. Replies: 2
    Last Post: 2006-01-31, 11:46
  4. Input in text field without new window
    By raffaelesergi in forum Mobile Java General
    Replies: 3
    Last Post: 2003-10-28, 10:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts