Solved

Capture a selected value from dynamically populated cfselect

Posted on 2010-08-13
1
242 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

861 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

25 Experts available now in Live!

Get 1:1 Help Now