Can anyone help me what can I do to
in name fields like this should not be allowed
I know regex replace is one way to do it but I can't make it work. Anyone can teach me how to do it? Most forums are outdated.
I tried inputmask but my problem is it does not allow space.
Hi @Monica Anne Laurente ,
Have a look this component it will help you.
https://www.outsystems.com/forge/component-overview/11214/reactive-client-side-validation
Hello Rahul, but I want to implement this without using any forge. Thanks
Hey @Monica Anne Laurente please refer below screenshot, you can achieve using OnKeyPressEvent of Input field. you have to send Input widget ID in JS code.
Thanks,Shriyash Dixit
what does the js code do? I don't understand how it works
It will restrict you from entering special characters
OML :
Hello @Monica Anne Laurente
Check if this works for you, You need to add JS lib to your script folder and the use the function on your on ready action of Js
I am attaching samplehttps://personal-ejuytnht.outsystemscloud.com/SA/SAmple?_ts=638203678533170967
ThanksTousif Khan
HI Tousif, you were able to do it but may I ask how will you implement this for a specific input widget only not on the entire screen/block
To make it specific we pass the Id of the input on which we want char to ristrict.