2 Replies Latest reply on Feb 5, 2008 7:59 AM by Dan Bracuk

    Advanced Radio Buttons

    RoadieJodie
      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.
        • 1. Re: Advanced Radio Buttons
          Level 7
          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>
          >

          • 2. Re: Advanced Radio Buttons
            Dan Bracuk Level 5
            Another way is to submit to a cold fusion page that forwards them to the page of choice depending on whatever logic you specify.