How to prevent data in a text box from being double inputted

I need help from friends here, how do I fill in the data in the NIS text box with the same data, it will be rejected, I use a spreadsheet database.

What is the response content in the Web.GotText event in this case? Just display a nice error message for the user like "data already available "