V11 Grid and Dialog Component - Client-Side Mask - Dynamically Setting the Mask at Run-Time
Uploaded on Aug 16, 2013 / 130 views / 477 impressions / 0 comments
Description
M18 Conditional Masks
You can now specify a Javascript function to dynamically compute the mask for a control. The Javascript function gets called every time the control gets focus. When the Javascript function gets called, it can read data in the current grid row (or Dialog), and compute the mask to use based on this data. For example, say you have a mask for a telephone number field. In the US, UK, and Europe, different formats are used for telephone numbers. The Javascript function can decide what format string to return based on the current value of the "COUNTRY" field.