VLWeb Material Design Numeric field remove leading zero
Posted: Thu May 24, 2018 4:07 am
I feel like I've had to deal with this before with the traditional controls but can't recall or find it. Now I am having this issue with the Material Design controls.
When displaying a numeric field, here the Office Number, a 0 (zero) is the default because the "Default Value" of the field is *ZERO My issue is when I put the cursor into the field, the 0 is there creating a leading zero. That's fine for mathematical ops, but for identifiers not so much, as leading zeros can be significant. I need it to select the entire field so that when the user starts typing, the field contains ONLY what the user has entered, i.e. no leading zero. Double clicking will select the whole field, but my user's should have to do that.
Do I have to programmaticly select the whole field when they click it? I feel like there should be an attribute or property to control that.
When displaying a numeric field, here the Office Number, a 0 (zero) is the default because the "Default Value" of the field is *ZERO My issue is when I put the cursor into the field, the 0 is there creating a leading zero. That's fine for mathematical ops, but for identifiers not so much, as leading zeros can be significant. I need it to select the entire field so that when the user starts typing, the field contains ONLY what the user has entered, i.e. no leading zero. Double clicking will select the whole field, but my user's should have to do that.
Do I have to programmaticly select the whole field when they click it? I feel like there should be an attribute or property to control that.