# \[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:** 19\
**Page:** 2

<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, 3:29pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/21 "2020-05-02T15:29:10Z")

</div>

> [@janaidfarooq34](#):
>
> 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 n

Sounds like a lot to just reproduce. want to share a project link ?

---

<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:29pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/22 "2020-05-02T15:29:39Z")

</div>

Hi,

Going off of your issue, there are 6 inputs:

- Name
- Door Number
- Card Number
- Card Security Code
- Cash Switch
- Card Switch

Correct me if I am wrong here, I will try do up a solution to this for you. You need:

- None of the number inputs to contain a special character
- Check no inputs are blank
- Card input to = 16
- Card security code input = 3\* (_I am guessing this is the same as a debit/credit card number security code_)
- Either cash or card switch must be positive, i.e. neither the can be the same value (_this will mean one switch has to be positive_)

### Let me know how this example works out for you:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/5/c5107f12abf4964e0c14155fe0855713544b4bfe.png)

Again, apologies for the delay in getting back to you.

This example looks a little crazy, but it does work for me.

### Example Run Down:

- First IF statement is to check card, cvv and room no. are all numbers. This is done by joining them together and checking if they’re positive. Only numbers can be positive 🙂
- Second and third IF statements check for empty text, these could be joined into one statement but I left it this way in case you wanted to customise the response messages in the Alert.
- Fourth and fifth IF statements check that the card number length = 16 and that the CVV length = 3.
- Sixth IF statement checks that both switches aren’t the same value, thus one must be positive 🙂

Let me know how you get on here.

---

<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:33pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/23 "2020-05-02T15:33:58Z")

</div>

@jared I will send a link if @eoinparkinson solution doesn’t work and yh I believe you have done it according to my requirements. I will try it now.

---

<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:44pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/24 "2020-05-02T15:44:42Z")

</div>

I forgot to say before that the Name column cannot include Special Characters either.

---

<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, 4:03pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/25 "2020-05-02T16:03:42Z")

</div>

Hi

I found [this post](https://stackoverflow.com/questions/22561552/do-modern-credit-card-processing-systems-allow-diacritics-in-cardholder-names) on Stack Overflow, specifically this comment:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/f/7f37ea41836f6f7d99bf12c1646b5e28e7e4d22a.png)

If you’re using Stripe API for your app, then ignore the special characters input for **Name Input** and let Stripe give you the error message, which you can translate in app as an Alert to the user.

(edit)

You can still filter out some things like, "&,./?\>\<{}\*^%$€£#! etc. But I wouldn’t worry too much more about that since you will get an error when processing payment.

---

<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, 4:05pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/26 "2020-05-02T16:05:18Z")

</div>

Would I need to use something like Stripe? As I am only creating a prototype.

---

<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, 4:06pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/27 "2020-05-02T16:06:40Z")

</div>

My edited answer above kind of answers this. If the user enters incorrect information, the actual processing of the card will return an error. It’s the same as entering the incorrect 16-digit card number or wrong CVV. They will all return an error.

---

<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, 5:37pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/28 "2020-05-02T17:37:32Z")

</div>

@jared Here’s the link: [https://x.thunkable.com/copy/a69b1435b31a7ecd250bc97d6cac7f22](https://x.thunkable.com/copy/a69b1435b31a7ecd250bc97d6cac7f22)  
If you can get it working as I intended to it will be greatly appreciated.

Just to remind you of my requirements:

- None of the inputs can have Special Characters in them
- No inputs can be blank (Remember to include the postcode as well which I have done as a dropdown)
- Card Input = 16 Numbers
- Card Security Code Input = 3 Numbers (Same as CVV)
- An alert when both Card and Cash equal False (I have already programmed the switch)

---

<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, 5:45pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/29 "2020-05-02T17:45:11Z")

</div>

If you are unable to do it is fine. As, I only need the majority of my app which it is. But, I wanted to try and get this working so I can give a better impression when showing the prototype off.

---

<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, 7:28pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/30 "2020-05-02T19:28:24Z")

</div>

> [@janaidfarooq34](#):
>
> Just to remind you of my requirements:
> 
> - None of the inputs can have Special Characters in them
> - No inputs can be blank (Remember to include the postcode as well which I have done as a dropdown)
> - Card Input = 16 Numbers
> - Card Security Code Input = 3 Numbers (Same as CVV)
> - An alert when both Card and Cash equal False (I have already programmed the switch)

This is a weighty request. What have you tried since @eoinparkinson‘s suggestions?

However, if the community cannot help you, I do offer low cost paid support via my website jaredgibb.xzy

---

<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, 7:40pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/31 "2020-05-02T19:40:03Z")

</div>

I tried @eoinparkinson suggestion it worked however I would want to include it with the feature which will not allow for Special Characters to be inputted. This is a university assignment and on the specification it says that the majority of the app features should work which they do. I just wanted to do a bit more validation to get more marks to be honest.

---

<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, 7:57pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/32 "2020-05-02T19:57:54Z")

</div>

Well, can we see what you’ve tried or what you think needs to happen?

---

<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, 7:58pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/33 "2020-05-02T19:58:55Z")

</div>

I will try to tomorrow as I am going off now.

---

<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 3, 2020, 2:30pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/34 "2020-05-03T14:30:06Z")

</div>

I have got it working albeit the method is a bit long to code. But it works as I want it to.

My method:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/a/aaac35b7b70d1c250dd176d2d08e23ad0f4d8c17.png) (The first ELSE IF)

---

<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 3, 2020, 2:31pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/35 "2020-05-03T14:31:49Z")

</div>

Glad you got it working. Be sure to share your app when it is done.

---

<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 3, 2020, 2:33pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/36 "2020-05-03T14:33:12Z")

</div>

Sure, do you want me to post it here?

---

<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 3, 2020, 2:36pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/37 "2020-05-03T14:36:48Z")

</div>

You can post your app in #SuccessfullyTHUNKd. Be sure to tell us how & why you went about the app, what it does and include a few screenshots 🙂

Happy Thunking.

---

<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 3, 2020, 2:39pm UTC](https://community.thunkable.com/t/solved-special-character-input/564451/38 "2020-05-03T14:39:07Z")

</div>

Thanks anyway for the help you and @jared gave. If I get chance to I will certainly post my app and screenshots of my app.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:29am UTC](https://community.thunkable.com/t/solved-special-character-input/564451/40 "2024-11-08T11:29:28Z")

</div>

Closed on November 8, 2024, 11:29am UTC



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