want to allow only alphanumeric keys in input field.
Hi Poonam,
One more solution:
1) Add the below JS script to the Input widget --> onkeyup extended property as shown below
onkeyup="this.value=this.value.replace(/[^a-zA-Z0-9]/g, '')"
Hope this helps you!
Regards,
Benjith Sam
Benjith Sam wrote:
working fine in traditional but how to do it in Reactive.
Try something like this https://www.outsystems.com/forge/component-overview/647/custom-input-masks
Cheers,
Tushar
The simplest and fastest (performance-wise) way is to use the regular expression.
^[a-zA-Z0-9]*$ It matches any alphanumeric string (no spaces).
^[a-zA-Z0-9]*$
Description:
^ : start of string [ : beginning of character group a-z : any lowercase letter A-Z : any uppercase letter 0-9 : any digit ] : end of character group * : zero or more of the given characters $ : end of string
Swatantra
Hi All
I am also facing an issue related to input fields for Mobile Applications.
I have a scenario where I have two input controls. One input to allow only integer values and second one restrict special characters. Its for mobile app. How to handle it . Can it will be possible to handle without using any forge component. Please suggest solution for this. Thanks in advance.