11
Views
2
Comments
Solved
Mobile number masking
Application Type
Traditional Web, Mobile, Reactive

Hi,

I need to show mobile no as format-

+91-8*1****990 if user enter like - 8812345990.

I have a one form and data save perfect but when use see detail form I need to show mobile in this format.

How can I achieve it.

Thanks in advance.


Rank: #89
Solution

Hi Amogh,

Use substr function from built in function.

like this  in expression or other variable where you want show this format-

"+91-"+Substr(PhoneNumberVar,0,1)+"*"+Substr(PhoneNumberVar,2,1)+"****"+Substr(PhoneNumberVar,7,3)

PhoneNumberVar is  holding 10 digit mobile no.


Hope this will help you.

Regards
Rahul

HI Amogh,

You can use https://www.outsystems.com/forge/component-overview/5289/input-mask-mobile component .

https://www.outsystems.com/forge/component-overview/647/custom-input-masks

https://www.outsystems.com/forge/component-overview/2258/input-masks-library

Hope this helps.

Thanks,