Hello
I'm new to CF and need some help with a form. I have three
radio buttons and one is <cfinput type="radio" name="rsvp"
value="Yes, my spouse/partner will also attend"> (Other two are
just Yes and No values with same name="rsvp") and if you select
this one there is a form feild to fill in your spouse/partner's
name (<cfinput type="text" size="15" name="spousepartner">).
I would like it so if that radio button is marked, then it is
required that the user fills in the corresponding text feild,
giving them an error if they do not. Also, when the form is
submitted an email will go out containing the form information, and
I would like there to be a line that displays the Spouse/partner's
name ONLY if that option was checked and a name was supplied.
Example---
RSVP: #form.rsvp#
Spouse/Partner's Name: #form.spousepartner# (Assuming they
did select that option, otherwise just have the RSVP line)
I have no knowledge of how to use the <cfif> tag and
was wondering if anyone could help me out here. Let me know if this
requires furthur clarification (or if I'm rambling and need to shut
up).
Thank you
Jakob