Hi, Senior Bubblers. I’ve been struggling with this issue, and I could really use some help here.
I’m trying to create a conditional where users cannot register the same name that already exists in my database, regardless of the case. This is important because I plan to create a slug from the saved name.
Currently, I can only make it work with a single keyword. For example, if I have a company registered as “Google,” my conditional text ‘Company name already exists’ successfully shows up for variations like ‘google,’ ‘googlE,’ ‘googLe,’ ‘GooglE,’ and so on.
However, the problem arises when I change “Google” to “Google Company.” The conditional still reads it as if the name is already taken, preventing others from using “Google” as their company name.
Here is my current conditional.
Pardon my novice skills. I would be incredibly grateful to anyone who can help me solve this issue. Thank you so much in advance!