Link to home
Start Free TrialLog in
Avatar of manicdiggity
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.
Avatar of _agx_
_agx_
Flag of United States of America image

CF function or javascript?
... and what should this function do if one of the required fields is missing?
Avatar of manicdiggity
manicdiggity

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
Avatar of _agx_
_agx_
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks, that worked!