Hello,
I can’t set up a control for a data that should be entered only once in my database. It is a data containing a set of alphabetical and numerical characters.
For this, I try to put a control on the input of a user by informing him that what he has typed is already known in the database (and then blocking his validation of the form).
Would SO have some tips to help me to unblock this situation please?
Bubble offers slugs as a 2nd unique identifier (1st is unique ID). Slugs has some constraints — no spaces, not all characters are allowed, etc — but it offers guaranteed* uniqueness. Could that suit your use case?
*: if you exclude empty
, it’s unique.
Thank you @rico.trevisan ,
In fact It is a database for animal owners and the 1st owner can create an animal and its unique ID (tatoo, chip, whatever). Then, another user who for instance buy an already created animal, shouldn’t be allowed to create again the same animal with its unique ID. Do you think that if I store this ID of each animal in the slug of each animal in my DB, that would be properly done? It seems that the constraints of the slug matches those of an animal chip ID.
And after choosing the slug as the storage for my need, how can I trigger my front-end so that my user knows he has entered an allowed/unallowed data plz?