435
Views
4
Comments
Solved
restricting input characters

Hi Team,

I want to restrict all characters except hiphen "-" in input.

Format should be 123456-6754 (6 digits followed by hiphen and followed by  digits),

Please let me know how to do this.

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

Hi ujwala,

You not clear your application type .but ,if you are using reactive app then you can achieve it by below Asset 

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

Thanks and regards,

Akshay Deshpande


2021-04-17 09-53-48
José Gonçalves

Hi ujwala,

you can achieve it using this component:

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

Regards

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

Hi ujwala,

You not clear your application type .but ,if you are using reactive app then you can achieve it by below Asset 

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

Thanks and regards,

Akshay Deshpande


2020-09-21 11-35-56
Sachin Waghmare

Hello Ujwwala,

Along with the above suggested forge components you can also restrict the input characters using Regular Expression. Please refer the below link to know more about RE.

https://success.outsystems.com/Documentation/How-to_Guides/Logic/How_to_use_regular_expressions_in_OutSystems?

Thanks & Kind Regards,

Sachin

2020-06-10 05-06-30
shehroze khan

Hi ujwala ,

if you want to use only 1 or 2 hyphens"-" the you can use variable of that input  as long integer.

Thanks 

shehroze khan

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