How do I make it so my users can't add any special characters in their usernames?

Hi! Still working on my social media app as usual. I showed some of my friends my app and they found out they could add special characters to their usernames. How do I prevent this?

You’ll need to use what we call a “custom form” (not a form screen) to check if they’re entering special characters. I might actually use a “hybrid form” for this.

You can check for special characters using either a JavaScript or extract matching text column.

I’ll see if I can find an example of something I did recently.

1 Like

This will most likely help. I wanna make sure that this can prevent every single symbol besides dots or underscores.

Then you have to make sure you can get a regex snippet that works, or specify all characters that shouldn’t be there (a long way to go).