How can I limit an input to just accept only characters

and I need the users to be able to write only Arabic and English.

I don’t think you can limit the language of an input. Maybe add a helper text or a banner to help users in that matter, but you can use a formatter plugin to allow typing in letters only, like this one by zeroqode.

1 Like

Thanks for the reply,

But I managed to solve it via regex expression, which is [^a-zA-Z0-9\u0600-\u06FF]+ Which basically detects all other languages and special characters but accepts Arabic and English and numbers.

And my workflow is just when user submits an input it shows alert message only when that regex expression returns something.

2 Likes

Great! I wouldn’t have thought of doing it that way, cool stuff :slight_smile:

This topic was automatically closed after 70 days. New replies are no longer allowed.