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

cf10 how do I pass the selected value in cfselect to another .cfm page

Guest
Nov 12, 2012 Nov 12, 2012

Copy link to clipboard

Copied

I am new with CF. I am using CF 10 on WIN XP. I am pulling a distinct list of data and want the user to select one to open a new page (detail.cfm) and pass that value to the next page to be used for other queries.

can it be done?

Here is my code for cfselect .

What am I missing

<cfform name = "Form" action="detail.cfm"

          

         <cfselect name="trip"

                    query="gettri"

                 value="district_name"

                 required="yes"

                 multiple="yes"

                size="1">

    </cfselect>

<br> <input type="Submit" value="Submit">

</cfform>

Thank you for your time

Rob

Views

819

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 ,
Nov 12, 2012 Nov 12, 2012

Copy link to clipboard

Copied

All you appear to be missing is a closing angle bracket at the end of your cfform tag.    

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
Guest
Nov 12, 2012 Nov 12, 2012

Copy link to clipboard

Copied

I missed it when I typed it in my original question

The > bracket is in my code.

I justed checked.

It should read  ~ "detail.cfm">

The list works when I excute the page.

How do I pass the value after I have selected it on the page?

Thank you

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 ,
Nov 12, 2012 Nov 12, 2012

Copy link to clipboard

Copied

cfdump your form scope.  You should see it.

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
Guest
Nov 12, 2012 Nov 12, 2012

Copy link to clipboard

Copied

LATEST

got it thanks

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