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:

# 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

Hi,

You can use the following small OutSystems component:

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

Very easy to use.

Regards,

Daniel

Solution

Hi Harish, 


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


Kind regards,
Glenn

Solution

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.

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.