# \[Solved\] Special Character Input

**URL:** <https://community.thunkable.com/t/solved-special-character-input/564451>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [April 30, 2020, 3:11pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451 "2020-04-30T15:11:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![janaidfarooq34](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@janaidfarooq34](https://community.thunkable.com/u/janaidfarooq34)\
**Post date:** [April 30, 2020, 3:11pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/1 "2020-04-30T15:11:27Z")

</div>

Is there a way of preventing a user inputting special characters?

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [April 30, 2020, 4:14pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/2 "2020-04-30T16:14:49Z")

</div>

# Hi @janaidfarooq34,

- 
### Using the [Timer Component](https://docs.thunkable.com/timer):

[![](https://snipboard.io/rHfOpY.jpg) ](https://snipboard.io/rHfOpY.jpg)

- 
### We will set the interval to 1 millisecond, Loops = **True** and Enabled = **True** :

[![](https://snipboard.io/dJCVj4.jpg) ](https://snipboard.io/dJCVj4.jpg)

- 
### And arrange the blocks like so:

[![](https://snipboard.io/o3u9X2.jpg) ](https://snipboard.io/o3u9X2.jpg)

Let me know how you get on with this 🙂

---

<div class="post-metadata">

**Author:** ![janaidfarooq34](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@janaidfarooq34](https://community.thunkable.com/u/janaidfarooq34)\
**Post date:** [April 30, 2020, 4:44pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/3 "2020-04-30T16:44:28Z")

</div>

Is there a way to do it where the user makes an input then presses a submit button which sends an alert to the user of an invalid/special character being inputted? I would show an image of what I mean but I having an issue screenshotting/uploading the image to you (it keeps saying access denied).

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [April 30, 2020, 5:04pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/4 "2020-04-30T17:04:01Z")

</div>

Hi,

Yes. The example here tells the user that you cannot enter **%** symbol.

### Using these blocks and the [Alert Component](https://docs.thunkable.com/alert):

[![](https://snipboard.io/fsdQgC.jpg) ](https://snipboard.io/fsdQgC.jpg)

### We achieve this result:

[![](https://snipboard.io/HMWYA4.jpg) ](https://snipboard.io/HMWYA4.jpg)

Hope this helps.

---

<div class="post-metadata">

**Author:** ![janaidfarooq34](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@janaidfarooq34](https://community.thunkable.com/u/janaidfarooq34)\
**Post date:** [April 30, 2020, 5:09pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/5 "2020-04-30T17:09:25Z")

</div>

Thank you for the example. Is there a way to integrate more than one character so its like any special character entered can be detected?

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [April 30, 2020, 5:13pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/6 "2020-04-30T17:13:19Z")

</div>

Do you have a list of special characters?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [April 30, 2020, 5:13pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/7 "2020-04-30T17:13:58Z")

</div>

you could put the list into a list, and loop through each 100ms instead of trhough each item specifically.

you could have the app take it out too

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [April 30, 2020, 5:16pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/8 "2020-04-30T17:16:11Z")

</div>

[![](https://snipboard.io/gAk7Dj.jpg) ](https://snipboard.io/gAk7Dj.jpg)

---

<div class="post-metadata">

**Author:** ![janaidfarooq34](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@janaidfarooq34](https://community.thunkable.com/u/janaidfarooq34)\
**Post date:** [April 30, 2020, 5:17pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/9 "2020-04-30T17:17:44Z")

</div>

I will try this later thanks.

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [April 30, 2020, 5:18pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/10 "2020-04-30T17:18:08Z")

</div>

@janaidfarooq34 let us know how you get on. This works on my end 🙂

---

<div class="post-metadata">

**Author:** ![janaidfarooq34](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@janaidfarooq34](https://community.thunkable.com/u/janaidfarooq34)\
**Post date:** [April 30, 2020, 5:18pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/11 "2020-04-30T17:18:18Z")

</div>

Will do

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [April 30, 2020, 5:31pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/12 "2020-04-30T17:31:48Z")

</div>

nice!

---

<div class="post-metadata">

**Author:** ![janaidfarooq34](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@janaidfarooq34](https://community.thunkable.com/u/janaidfarooq34)\
**Post date:** [April 30, 2020, 6:37pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/13 "2020-04-30T18:37:26Z")

</div>

Thanks, @eoinparkinson & @jared. It works nicely.

---

<div class="post-metadata">

**Author:** ![janaidfarooq34](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@janaidfarooq34](https://community.thunkable.com/u/janaidfarooq34)\
**Post date:** [May 2, 2020, 1:35pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/14 "2020-05-02T13:35:27Z")

</div>

Hey, I am trying to include this with other input checks also. It doesn’t seem to work properly have I inputted the blocks incorrectly?

My Code Blocks:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/b/fbcd3367b17e1cfaa4501e5224e12d8121d2d641.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/9/09595e03cde1b8dcc598d0c87ec25ef6662b99d4.png)

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [May 2, 2020, 1:40pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/15 "2020-05-02T13:40:02Z")

</div>

Hi,

I see a lot of **ELSE IF** statements here, what are these doing? The first **IF** statement looks fine to me.

Can you describe more about what is going on here? Maybe an example of the error/issue that you are receiving.

Thanks.

---

<div class="post-metadata">

**Author:** ![janaidfarooq34](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@janaidfarooq34](https://community.thunkable.com/u/janaidfarooq34)\
**Post date:** [May 2, 2020, 1:49pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/16 "2020-05-02T13:49:35Z")

</div>

The first ELSE IF is to check for Special Characters in any of the 4 inputs (Name, Door/Flat No, Card No and Card Security Code). The 2nd one after checking for the 1st ELSE IF is to check for no input, 3rd one is for input length of 16 for Card No, 4th one for input length for Card No and the final one is to check for switches being enabled.

The ones after the 1st ELSE IF I have included so they are checked also. I think I have a rough idea where I have gone wrong do I need to include these ELSE IFs after the 1st IF statement?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 2, 2020, 2:46pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/17 "2020-05-02T14:46:30Z")

</div>

If they all need to occur, i would nest one inside of the next.

---

<div class="post-metadata">

**Author:** ![janaidfarooq34](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@janaidfarooq34](https://community.thunkable.com/u/janaidfarooq34)\
**Post date:** [May 2, 2020, 3:00pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/18 "2020-05-02T15:00:06Z")

</div>

Can you show me an example of how to do it just so I have a idea what to do.

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [May 2, 2020, 3:01pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/19 "2020-05-02T15:01:56Z")

</div>

Hi,

I am still working on a solution for you, apologies for the delay on this.

---

<div class="post-metadata">

**Author:** ![janaidfarooq34](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@janaidfarooq34](https://community.thunkable.com/u/janaidfarooq34)\
**Post date:** [May 2, 2020, 3:04pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/20 "2020-05-02T15:04:54Z")

</div>

Yh, I don’t mind who comes up with the solution as long as it functions as I want.

[Next page](https://community.thunkable.com/t/solved-special-character-input/564451.md?page=2)
