Hello
I am using EJ 2 version 16.3.0.29 (nuget package).
When using a MaskedTextBoxFor in a form I noted some strange behaviour.
1: Optional mask element is returned in value
When I use a MaskedTextBoxFor and define the mask as "\\+00\\ 9999999999", it is displayed in the GUI as "+__ __________".
Let's assume, a user inputs "+11 111111111" (1 number less than the maximum number of allowed numbers).
When the form is submitted, the value of the parameter sent in the MaskedTextBox is "+11 111111111_".
I would assume that the "_" at the end is not added to the value, since it was defined as optional in the mask.
Is this a bug?
Is there an option to NOT include the optional mask elements that were not filled when getting the value?
2: Option to hide optional mask elements in the GUI
Is it possible to hide the optional characters in the mask's prompt?
E.g. the mask is defined as "\\+00\\ 0000000009", in the GUI it is displayed as "+__ __________" (note that the optional character is displayed as a "_" as well).
Now I would assume that the optional character's would not be displayed at all, or at least with another character, to indicate to the user that the character is optional.
Is there an option to hide the optional mask elements when displaying the mask in the GUI?
Thank you for your help.
Kind regards
Phil