×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    11

    Input type=text set to number mode

    Using WRT html page, is there any way to switch the phone to number only mode when getting input for a field that should only be numbers?

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Input type=text set to number mode

    Hi awysocki,

    afaik there's no plain-HTML way to force a text field to accept only numeric characters. Anyway, you could use various workarounds, as:

    * use JavaScript to check the text field value (and optionally to remove all non-numeric characters)

    * use a dedicated JavaScript component, as the Slider shown here: http://wiki.forum.nokia.com/index.ph..._Web_Templates

    Hope it helps,
    Pit

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    11

    Thumbs up Re: Input type=text set to number mode

    Pit,

    Thanks for the, I like the slider, but the numbers I need to input are prices from .01 on up.

    Andy

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Input type=text set to number mode

    Hi Andy,

    in this case, you could implement your own JavaScript component, or use a simple text field with JavaScript validation to check that the field value represent a valid price.

    Pit

Similar Threads

  1. CEikRichTextEditor will not allow text input mode
    By hclemson in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-02-13, 15:56
  2. Replies: 3
    Last Post: 2008-12-23, 12:02
  3. E61 Edwin Default Input Mode Not Working
    By pavan in forum Symbian
    Replies: 2
    Last Post: 2007-04-24, 08:02
  4. MY Input mode key selection was not working
    By sriramadasu in forum Symbian
    Replies: 0
    Last Post: 2007-01-01, 06:46
  5. Replies: 5
    Last Post: 2006-03-09, 08:50

Posting Permissions

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