How Do I Create a Custom Input Mask with XMDesigner?

How Can We Help?

< Back

Answer

Set the textbox option Data Type to Custom.

Set the Display Mask option as required.

When specifying a custom datatype the textbox is rendered as igtxt:WebMaskEdit which is an Infragistics web control.

Character – Description

  • 0 Digit (0 through 9, entry required; plus [+] and minus [-] signs not allowed).
  • 9 Digit or space (entry not required).
  • # Digit or space (entry required).
  • L Letter (A through Z, entry required).
  • ? Letter (A through Z, entry optional).
  • A Letter or digit (entry required).
  • a Letter or digit (entry optional).
  • & Any character or space (entry required).
  • C Any character or space (entry optional).
  • . , : ; – / Decimal placeholder and thousands, date, and time separators. (The actual character used depends on the regional settings specified in Microsoft Windows Control Panel.)
  • < Causes all characters that follow to be converted to lowercase.
  • > Causes all characters that follow to be converted to uppercase.
  • \ If in front of any character appears the “\” (escape) character, then that character becomes the literal part of a mask. For example, if a mask is set to the “A\AB\B\\\##\99” and control has no data, then text in edit mode will appear as “_ABB\#_9_”. Where the “_” are available positions for entry

Samples

Mask Description

  • (000) 000-0000 (206) 555-0248
  • (000) AAA-AAAA (206) 555-TELE
  • #999 -20, 2000
  • >L????L?000L0 GREENGR339M3, MAY R 452B7
  • >L0L 0L0 T2F 8M4
  • 00000-9999 98115-, 98115-3007
  • >L<?????????????? Maria, Pierre
  • ISBN 0-&&&&&&&&&-0 ISBN 1-55615-507-7, ISBN 0-13-964262-5
  • >LL00000-0000 DB51392-0493

One Response to How Do I Create a Custom Input Mask with XMDesigner?

  1. Mark Jermanski August 21, 2015 at 9:02 pm #

    An input mask for time: 00:00 LL

This is the legacy version of the XMPro Documentation site. For the latest XMPro documentation, please visit documentation.xmpro.com

X