So i'm trying to use a MaskedTextBox for saving a phone number, but if the string only exists of digits and no other characters in the initial value it will always remove any leading zeros.
This gives me problems for when edit forms where a phone number of 0771234567 is loaded but 771234567 is displayed instead. If someone then clicks save all changes the leading zero is removed. I don't want it just for display either or always put a zero in front because it can also be multiple zeros depending on exit code used e.t.c. (the numbers will be used to call people they are not just for display.)
The code above will display '3333' as initial value instead of the desired '0003333', if i use '000test' instead then it works as intended and display '000test'
I don't understand the advantage of always removing leading zeros in this situation, i'd rather do this myself using php if neccesary.
I'm hoping i'm just missing something very simple, no kind of mask seems to help.
Dear support team
I have an interesting phenomenon. We are using a MultiSelect widget with remote data binding. In theory, the data looks like this:
I can select all values just fine and they are posted to the form on the receiving end. When reloading the form, we pre-populate the selected items, by calling ->setValue() with an Array of strings: 099,100.
Is this something I can avoid? Do I need to specify anything special for the Key column (so far I have only specified the name of the field and marked it as an IDcolumn).
Thank you for your advice.