Hi , i have this flow where users need to fills some textFields wrapped with form validation widget for something like membership registration. and the values are stored "created" into specific firebase collection called "consituent".
there is one issue where users can submit same entries/records of same identity into same collection.
example :
user 1 >> textField Value = 08979878 >> Submit >> Firebase Create Document >> Document stored >> user 1 repeat the flow with same textField Value = 08979878 >> submit .............. > Document stored >> and so on user 1 can do it limitless ........
if the user 1 is someone with bad attitude and spamming the submit button again and again it will destroy our database for being filled with alot of document Ids but with same identical entries .
please help me on how to prevent this . i need the textField validate that if the entries users fill are already registered/submitted then prompt an alert and submit action cannot be done .
thank you everybody