Solved

Capture a selected value from dynamically populated cfselect

Posted on 2010-08-13
1
253 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
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 …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

726 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