I have a form script that validates for "value must be one of". If someone enters potatoes in the field, and if potatoes is one of the acceptable values, the form goes through. That's all the form does.
I need the form to produce a different result for each matching entry. For instance, potatoes and tomatoes are acceptable options. If someone enters potatoes, I need the result to be a popup window that says potatos are brown. If they enter tomatoes, the result should say tomatoes are red. How do I create different resulting text based on their acceptable entry?
Thank you so much in advance.