• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

[HELPED] Forcing uppercase on input field

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

  • [HELPED] Forcing uppercase on input field

    Hi,

    How do I force uppercase on a input field on a form? I am using the following to define the Registration field:

    xtype: 'textfield',
    id: 'REGO',
    fieldLabel: 'Registration',
    maxLength: 6
    }

  • #2
    Use a text transform in CSS.

    Googling led me to this discussion:
    http://stackoverflow.com/questions/7...ing-user-lette

    Which linked to this example:
    http://jsfiddle.net/molecule/DrjTS/

    Code:
    {
            xtype: 'textfield',
            name: 'upper',
            fieldLabel: 'Upper',
            fieldStyle: 'text-transform:uppercase',
            
            allowBlank: true
        }

    Comment


    • #3
      Thanks very much eweiler, worked perfectly!

      Comment

      Working...
      X