I have a scenario in an appointment booking web applicaiton, where there is a form, where I need users to be able to search for previous clientele, and if they are not found, have the option of entering new record. I am not sure what is the best way to approach this on the form. I was thinking some form of autocomplete/search, but i am not sure how to best let them add a new record at that point. I feel like this must be a common problem with known solutions. How would you approach this?
There are three uses cases to consider here,
So accounting for the three use cases, I would suggest a design which uses autocomplete to quickly filter down to the desired clientele(if the clientele exists) or to see if the clientele is the same as what we are checking for. Hence the layout would look like this :
So here the user searches for a client and the auto complete helps him filter down.If a matching clientele name is found then it retrieves the values but also gives him an option to add a new clientele with the same name.
However if no match is found then you can have something like this :
where a error message is given and you can add a new clientele if needed