Function for if one field is entered, then they are all required
Posted on 2011-10-25
I wanted to see if there was an easy way to create a function that takes in five fields (name, address, city, state, zip). If any one of the fields is entered, then all the fields are required. However, if they are all blank, then none are required. Right now I have a series of if-else statements which is quite cumbersome.