Advertisement

05.12.2008 at 07:42PM PDT, ID: 23396548
[x]
Attachment Details

prepopulate select box using Cldfusion

Asked by erikTsomik in ColdFusion Application Server, JavaScript, Cold Fusion Markup Language

I my form I am dynamically buiding an drop down. Everything get populated ecept when i select something and store to the DB when next time I go in and load the I would like this drop down to be prepopluated with previous value

cfloop query="qryQuestionOptionsReview1">

                              <cfset selectOptions = selectOptions & '<option value="#options#_#id#">#options#</option>'>

            
</cfloop>
an then i do
 <cfif len(trim(selectOptions)) gt 0>
                  
                        <select name="sel_#id#" id="sel">
                              <cfoutput>#selectOptions#</cfoutput>
                        </select>
            
                  <br />
            </cfif>Start Free Trial
[+][-]05.12.2008 at 08:07PM PDT, ID: 21552001

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: ColdFusion Application Server, JavaScript, Cold Fusion Markup Language
Sign Up Now!
Solution Provided By: hielo
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.13.2008 at 06:14AM PDT, ID: 21554690

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 06:31AM PDT, ID: 21554834

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 06:36AM PDT, ID: 21554877

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 07:33AM PDT, ID: 21555421

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 10:50PM PDT, ID: 21561536

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628