I'm attempting to remove all the garbage from being entered into a database, so I'd like to severely limit the information entered and require specific fields if a certain value is chosen....
For example....
User selects customer "Joe" and that customer requires "Tracking Number" and "Return Tracking Number"
If user selects customer "Ted" but does not enter "Store Number" then they must enter an "Address".
How do I perform these two actions? Perhaps a bit of insight into how to program this, I do not need the code written out, unless there are some extremely fancy commands being used. I just want to know how to go about performing this, and the most effective method.
Remember, Garbage-In-Garbage-Out... Missing some information for one customer could breach a contractual agreement and give a headache.
For example....
User selects customer "Joe" and that customer requires "Tracking Number" and "Return Tracking Number"
If user selects customer "Ted" but does not enter "Store Number" then they must enter an "Address".
How do I perform these two actions? Perhaps a bit of insight into how to program this, I do not need the code written out, unless there are some extremely fancy commands being used. I just want to know how to go about performing this, and the most effective method.
Remember, Garbage-In-Garbage-Out... Missing some information for one customer could breach a contractual agreement and give a headache.
Comment