There is a phone number table with columns Key and Phone number with type enum and base type phone.
A user attempts to add a possibly new phone number using the form of that table. If its already there then it should show up, and if it is not, then a new entry would be made.
What I want is to be able to navigate to two different views based on the status of the phone number entered. If its a new number then it should go to a customer entry form. If its an existing number then it should go to a sales form involving that customer who has that phone number.
Is there a way to achieve this?