Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
400
Left Pad WebMask Editor
posted

I have a WebMask Editor that allow the user to enter three digits and I tell it to put 0's in for empty spaces..  

What I want is for when they enter 1 and tab off of it, it will turn it into 001.  As it stands now, it turns it into 100.

How do I tell it to pad the 0's to the left of what they enter, instead of the right?

  • 24497
    posted

    Hi,

    I can not explain how entry of 1 can be converted to 100. Maybe your logic adds 2 zeros at the end. If you want to convert "1__" to "001", then you may process ValueChanged (or Blur) ClientSideEvents, check value entered by user and set formatted yours value.