Feature Request: Validate form fields against existing data
There are so many use-cases for this its not even funny However, easily the highest-value use-case is the prevention of duplicate data. For example, no duplicate emails or phone numbers being entered if only one instance should be allowed.
This means no more de-duping automations for particular data points
The current data validation options only measure against static parameters, e.g. text length, text contains, or even parameters defined in regular expressions.
But being able to validate a form field (like text) against all data currently existing in the table and more specifically in that same field, would be a game changer.
Here’s how I envision this working:
Operators
text contains / text does not contain
text equal to / text not equal to
For the target, builders can select any field from that same table to measure against (provided the target field is the same type as the form field being configured).
We do have the possibility of making certain fields unique, it will simply reject the form-save when you submit the form, instead of searching the DB when it’s typed
Let us know if you want to trial that on any field
Not sure, if that is what @buildwithjoel is looking for. I presume he would want a “flag” as you enter the info into the form vs. getting a rejection upon saving?
Is the “unique” feature available already? I would like to test it, if it is still in beta.
@darragh@Tobias I’d be happy to test the upon-submission validation! But Tobias is right–I’m more so looking for real-time validation against existing data (with a real-time notice when an entry is invalid). And ideally, the ability to check the form field entry against any field of choice from the same table that is the same data type (as mentioned in the post).
Another thing I thought of is what should happen if a data entry is invalid. To start, the ability to simply get an in-line notice would be nice, but even better would be that PLUS the ability to conditionally hide/display fields based on that field’s validation’s success or failure.