I have a server validation that is supposed to prevent Products with the same name from being registered. However, to my surprise, I managed to register two products with the same name:
Volkswagen Golf GTI
Volkswagen Golf gti
Please, don't tell me this “check existing entry” validation isn't case-insensitive... with no option for that…
Yes, and technically that would work from a data integrity standpoint.
But it would break the user experience, as they receive field validation via "red messages under each field"—which is exactly one of the most useful aspects of the validation feature.
Converting the data to lowercase before inserting it into the database would be another approach, but product names have specific casing that carries meaning. If a product is named "MSFT - Double Decker Truck GT," it must be displayed exactly like that, and that formatting would be lost if I applied this formatting.
A new column to store the product name in lowercase? I can do that... Of all the solutions I’ve been considering, it’s the simplest one... and it works.
It’s a shame the validation doesn't have a "case-insensitive" option...
Why not create a feature request? This problem will affect everyone who uses the validator (myself included) so it makes sense to have it added as a feature if this is possible.