• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Advanced Radio Buttons

New Here ,
Feb 04, 2008 Feb 04, 2008

Copy link to clipboard

Copied

My goal is to use a set of radio buttons in a survey to either complete the survey, or move on to the next page depending on the answer.

"Yes" will send the user to another .cfm page when selected.
"No" will send the user to an .html page and submit the survey.

Using one continue button.

I first need to find the tag before =/EQ so it can forward the browser to an html/cfm page.
TOPICS
Advanced techniques

Views

193

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 05, 2008 Feb 05, 2008

Copy link to clipboard

Copied

Soemthing like this?

<cfform name="form1" id="form1" method="post" action="">
<cfinput
type="radio"
value="yes"
name="applicant"
required="yes"
message="Please Complete"
onclick="document.form1.action = '/08Conf-rsvp-pg2.cfm'">
Yes <br />
<cfinput
type="radio"
value="no"
name="applicant"
required="yes"
message="Please Complete"
onclick="document.form1.action = '/regfail.html'">
No
<center>
<cfinput type="submit" name="picnicReg" value="Continue" />
</center>
</cfform>


--
Ken Ford
Adobe Community Expert - Dreamweaver
Fordwebs, LLC
http://www.fordwebs.com


"RoadieJodie" <webforumsuser@macromedia.com> wrote in message
news:fo7e1d$p3m$1@forums.macromedia.com...
> My goal is to use a set of radio buttons in a survey to either complete
> the
> survey, or move on to the next page depending on the answer. 'Yes' will
> send
> the user to another .cfm page when selected. 'No' will send the user to an
> .html page and submit the survey. Using one continue button. I first
> need to
> find the tag before =/EQ so it can forward the browser to an html/cfm
> page.
>
> <cfinput type="radio" value="yes" name="applicant" required="yes"
> message="Please Complete"
> <CFIF ='Yes'> CHECKED passThrough = "/08Conf-rsvp-pg2.cfm">
> </CFIF>>Yes
> <br />
> <cfinput type="radio" value="no" name="applicant" required="yes"
> message="Please Complete"
> <CFIF = 'No'> CHECKED passThrough = "/regfail.html">
> </CFIF>>No
>
> <center> <cfinput type="submit" name="picnicReg" value="Continue"
> /></center>
>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 05, 2008 Feb 05, 2008

Copy link to clipboard

Copied

LATEST
Another way is to submit to a cold fusion page that forwards them to the page of choice depending on whatever logic you specify.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation