You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a component that we want to enter an invoice number. The number will be a maximum of 4 characters in length. I'd like to be able to just enter a number and have the value display with leading 0s. Essentially, populate the field from right to left instead.
The example would be when I first see the field, it would pre-populated with "0000". Then when I enter a "1", it will change to "0001". I would expect to just get 1 back.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a component that we want to enter an invoice number. The number will be a maximum of 4 characters in length. I'd like to be able to just enter a number and have the value display with leading 0s. Essentially, populate the field from right to left instead.
The example would be when I first see the field, it would pre-populated with "0000". Then when I enter a "1", it will change to "0001". I would expect to just get 1 back.
Here is my component I have right now:
Beta Was this translation helpful? Give feedback.
All reactions