I am using ExtJS 3.3 and found a good example here: http://www.sencha.com/forum/showthread.php?136002-Mask-for-TextField
> Carl, > > You should really review the documentation on the ExtJS site, for the > > version you are using. You do not need additional plugins for this > type > of thing. Ext allows you to define default empty text, masked input, > and > you can put a listener on the field's render event, to place the > cursor > on focus. The Ext forums, on the Sencha site, are a good place for > this > sort of info... > > Steve 'Cutter' Blades > Adobe Community Professional > Adobe Certified Expert > Advanced Macromedia ColdFusion MX 7 Developer > ____________ > http://cutterscrossing.com > > > Co-Author "Learning Ext JS 3.2" Packt Publishing 2010 > https://www.packtpub. com/learni> ng-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book > > "The best way to predict the future is to help create it" > > On 2/25/2014 3:38 PM, Carl Von Stetten wrote: > > Richard, > > > > You'll need to do some JavaScript magic to accomplish that. There > are > > some widgets and jQuery plugins out there that seem to fit the > bill: > > > > http://digitalbush.com/projects/masked-input-plugin/ (jQuery > plugin) > > http://jquery-plugins.net/tag/masked-input (a list of jQuery > plugins) > > http://jasny.github.io/bootstrap/javascript/#inputmask (Bootstrap > plugin) > > > > -Carl V. > > > > On 2/25/2014 12:13 PM, Richard White wrote: > >> Hi, > >> > >> This is not really a CF question but rather seeking general code > advise. > >> > >> I want to create a textfield using ExtJS and would like the user > only to have access to alter parts of the text... > >> > >> For example, I want to populate the textfield with 'CP - - U' > >> When the user clicks on this textfield I want the cursor to start > blinking next to the P (in the position of the empty space). Then as > the user types I would like the textfield to replace the empty spaces. > When they get to a dash it automatically skips the dash and keeps > typing where the next underline is. > >> > >> Is there a special kind of textfield or formatting that can be used > to achieve this? > >> > >> Many thanks for any advise. > >> Richard > >> > >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357781 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm