29
Views
5
Comments
Solved
Allow space in zipcode

Hi Team,

I have zipcode as int in db and want to just allow space in between 3 digits and 2digits of 5 digit zipcode,but it will be stored as 12345 ex in backend,

User will enter 12345 on screen but How to allow the user to just see the zipcode as 

123  45 on screen,I mean how to format on the screen for visibility of user.

2025-04-17 05-42-16
Ajit Kurane
Solution

Hello ujwala,

Try to implement this one,

https://www.outsystems.com/forums/discussion/64344/how-to-make-a-space-after-4-characters/

You just need to make changes in it as per your requirement.

Hope it helps you.

Regards,

Ajit Kurane.

2024-01-31 05-29-41
Akshay Deshpande
Solution

Hello Ujwala T,

as far as i know integer will not store the space so may be you need that field as text (zipcode)

and on screen mask that value with only number 

https://www.outsystems.com/forge/component-overview/7838/inputmask-react

and give the mask number to that field "999 99" like wise

or mask text as "999 99" 

check the component it will helps you,

Thanks and Regards,

Akshay Deshpande

UserImage.jpg
Johny William

Hello  Ujwala ,

You can achieve this by using java script code - have a look on this link just change the number according to your requirement.


Thanks & Regards 

Tousif

UserImage.jpg
ujwala

Hi,

Can you please provide example in Outsystem.

Regards

UserImage.jpg
ujwala

I have tried regexreplace but not working.PFA

Calc.oml
2025-04-17 05-42-16
Ajit Kurane
Solution

Hello ujwala,

Try to implement this one,

https://www.outsystems.com/forums/discussion/64344/how-to-make-a-space-after-4-characters/

You just need to make changes in it as per your requirement.

Hope it helps you.

Regards,

Ajit Kurane.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.