738
Views
5
Comments
Solved
only text input

Hi,

In a name input , i add a variable (data type is text) to name input . i want that it except only text not a number. so please explene how to do this .

2018-10-04 11-30-51
glenn michiels
Solution

Hi Harish, 


Has this issue been resolved or do you require further guidance?


Kind regards,
Glenn

2025-01-09 14-56-57
IQ78

hi:

# use server action to check it: manage dependency library 'text'

# in the text lib, there is function regex and follow this to check: https://stackoverflow.com/questions/3617797/regex-to-match-only-letters

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi,

You can use the following small OutSystems component:

https://www.outsystems.com/forge/component-overview/1002/restrictchars

Very easy to use.

Regards,

Daniel

2018-10-04 11-30-51
glenn michiels
Solution

Hi Harish, 


Has this issue been resolved or do you require further guidance?


Kind regards,
Glenn

2021-08-30 15-28-09
Leandro Correa

Hi Harish,

There are a few ways to do this, using forge components like custom input masks.

Usings a Javascript Function to vlaidate in client-side or Server-Side function in the Text Library.

UserImage.jpg
Hugo Jorge

Harish Sharma wrote:

Hi,

In a name input , i add a variable (data type is text) to name input . i want that it except only text not a number. so please explene how to do this .


Hi,

You can use custom input masks as Leandro said or you can use Regex ( ^[a-zA-Z ]*$ ) to validate what the user inserted in the input. With mask you don't allow insert with regex user can insert then on save button you can validate.

Hope this helps.

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