manicdiggity
asked on
Function for if one field is entered, then they are all required
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.
CF function or javascript?
... and what should this function do if one of the required fields is missing?
ASKER
CF function. If one of the required fields is missing, it can just return text that all fields must be entered. Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, that worked!