Rank: Newbie Groups: Member
Joined: 1/3/2020 Posts: 3
|
Hi Team,
I am using Essential Object MaskedEdit in my Web forms project where the controls gets bind dynamically. In this, if user provides Field Masking value for any of the text box, that text box has to be masked. For this, EO.Web.MaskedEdit is used. I need to escape the property "L" from masking. "L" - Letter, required. Restricts input to the ASCII letters a-z and A-Z. This mask element is equivalent to [a-zA-Z] in regular expressions.
Example:
When i am giving field mask as "XL###", the form gets loaded as "X_ ". I need the form to get loaded as "XL ".
I tried using "\". But in EO.Web.MaskedEdit, even "\" escape character is not escaping the property of "L".
Kindly help me on this.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi, Please use two different segments: A Literal segment and a Mask segment. The Literal segment will have "XL" and the Mask segment handles the rest. See here for more information about segments: https://www.essentialobjects.com/doc/web/maskededit/segments.aspxThanks!
|
Rank: Newbie Groups: Member
Joined: 1/3/2020 Posts: 3
|
Hi Team,
Thank you for your quick response. My project is not feasible to split the input as you stated above. Is there any chance to remove the property "L" from Mask segment ? Will i be able to overwrite your class and remove property "L" from your library?
Thanks.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
No. There is no way to do that. You must split them.
|
Rank: Newbie Groups: Member
Joined: 1/3/2020 Posts: 3
|
Thank you
|