Coldfusion Form Validation - Require Only One of Many Fields
Posted on 2008-10-16
I have a form that asks for workphone, cellphone, homephone and email. I want to validate the form so that only one of the 4 fields is required. I need to use cffom because I am also passing variables to some of the form values. How can I show a message box stating that a "Phone number or email is required" if all of these fields are left blank?