17
Views
1
Comments
[Restrict Chars Reactive] Just Alpha and Numbers is accepting Special Character
restrictcharsreactive
Reactive icon
Forge asset by João Melo
Application Type
Reactive

Hi

My requirement is :my textbox should not accept Special character and it should accept only Number and character upto 50 length.but Just Alphanumber is not working and it is accepting Special Character.

i have added custom expression in static entity and added regular expression /[^a-zA-Z0-9\s\:]*/   but it is not working.can anyone please help me

2023-12-19 16-46-19
Castro Vieira


Hi,


You might want to do this in the other way around, if the user inserts invalid characters , they should get a error saying that special characters are not allowed. The validation would require something like a regex that would only allow letters, spaces and numbers, if it makes sense to have them. 


In case you really want to remove those characters, you would need to use Replace function but you would probably end up building this, that doesn't look pretty. 



or you can try using Regex_Replace from Text extension

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