# How can I limit an input to just accept only characters

**URL:** <https://forum.bubble.io/t/how-can-i-limit-an-input-to-just-accept-only-characters/345756>\
**Category:** Need help\
**Created:** [October 26, 2024, 7:26am UTC](https://forum.bubble.io/t/how-can-i-limit-an-input-to-just-accept-only-characters/345756 "2024-10-26T07:26:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruhvat](https://avatars.discourse-cdn.com/v4/letter/b/7cd45c/32.png) [@bruhvat](https://forum.bubble.io/u/bruhvat)\
**Post date:** [October 26, 2024, 7:26am UTC](https://forum.bubble.io/t/how-can-i-limit-an-input-to-just-accept-only-characters/345756/1 "2024-10-26T07:26:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![hanan1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hanan1/32/111158_2.png) [@hanan1](https://forum.bubble.io/u/hanan1)\
**Post date:** [October 26, 2024, 8:57am UTC](https://forum.bubble.io/t/how-can-i-limit-an-input-to-just-accept-only-characters/345756/2 "2024-10-26T08:57:25Z")

</div>

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](https://bubble.io/plugin/input-formatter-1511219683528x454660121898516500) by zeroqode.

---

<div class="post-metadata">

**Author:** ![bruhvat](https://avatars.discourse-cdn.com/v4/letter/b/7cd45c/32.png) [@bruhvat](https://forum.bubble.io/u/bruhvat)\
**Post date:** [October 26, 2024, 2:30pm UTC](https://forum.bubble.io/t/how-can-i-limit-an-input-to-just-accept-only-characters/345756/3 "2024-10-26T14:30:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![hanan1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hanan1/32/111158_2.png) [@hanan1](https://forum.bubble.io/u/hanan1)\
**Post date:** [October 27, 2024, 6:00am UTC](https://forum.bubble.io/t/how-can-i-limit-an-input-to-just-accept-only-characters/345756/4 "2024-10-27T06:00:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [January 4, 2025, 7:27am UTC](https://forum.bubble.io/t/how-can-i-limit-an-input-to-just-accept-only-characters/345756/5 "2025-01-04T07:27:58Z")

</div>

Closed on January 4, 2025, 7:27am UTC

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