Solved

Capture a selected value from dynamically populated cfselect

Posted on 2010-08-13
1
239 Views
Last Modified: 2012-06-21
Thank you for helping me out with populating the list using ajax.

Now, when I save the form, I need to capture the name I selected from this dynamically populated cfselect and show a custom message on the screen. The message is  something like:

'Your request has been sent to <Requested User>'.

Please help.

Thank you
Sharath
0
Comment
Question by:sshivanna
1 Comment
 
LVL 52

Accepted Solution

by:
_agx_ earned 125 total points
ID: 33434091
>>  <cfselect name="getManagers" id="getManagers">

When the form is submitted, the selected list item will be available as the variable #FORM.getManagers#.  So just use that variable within a cfoutput

ie
<cfoutput>
Your request has been sent to #FORM.getManagers#
</cfoutput>
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now