It seems that it should be simple, but I'm being challenged by trying to display a number in WebNumericEdit in a fixed format containing 4 digits with leading zeroes.
In reviewing another post, it implied that putting code in the ValueChange event to set the value of the object would work, but it doesn't. Here's what I do:
function ValueChange(oEdit, oldValue, oEvent) {var txt = "0000" + oEdit.elem.value;oEdit.elem.value = txt.substr(txt.length - 4)}
This seems to have no affect.
Suggestions?
Thanks...Steve
Hi Steve,
Access to elem.value is not supported. Set may destroy control.
If you use integer only, then the best you can do is to use WebMaskEdit with InputMask "0000", DisplayMode=Mask and Pad/Prompt/EmptyPositioChar set to 0.
On server you may convert value-string to number.