Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
TheEngineer #1
cfselect values
:confused; Im trying to populate a drop down select menu with the first and
last name of a customer in the form of (last_name, first_name) but the first
and last name are too different columns of the database and all i can figure
out is only firstname , or only last name.
TheEngineer Guest
-
Can we bind the values from cfselect to display thoseinto cfinput text boxes.
Hi, I have a cfselect box which is having values from cfquery. I want to bind those values into few input boxes. I have been trying for so many... -
CFSELECT Help!!
I have a flash form page that when an item is selected in a <cfselect> field needs to populate five other fields on the form. Please help me!!! -
CFSELECT HELP!
What I am trying to do seems simple but I'm going crazy! I need have a page where I have the user "Select Options" from a drop down box and when... -
cfselect options dependent on choice from other cfselect
I have 2 cfselects. 1st is category, 2nd is sub category. both are populated from database queries, but the options from the sub cat vary based... -
CF7 BIND CFSELECT to populate a 2nd & 3rd CFSELECT
Please could some show code of how this is done: CF7 - Flash page Question: How do I bind these cfselect dropdown lists to one another as per the... -
eastinq #2
Re: cfselect values
<option value="#last_name#, #first_name#">#last_name#, #first_name#</option>
eastinq Guest
-
TheEngineer #3
Re: cfselect values
im trying to do it as a cold fusion form and that doesn't work, heres the code
that i have
<cfselect name="tenant" query="tenants" value="last_name">
<option value="#last_name#, #first_name#">#last_name#,
#first_name#</option>
</cfselect>
Thanks for the help, if you havent noticied Im a super newbe.
TheEngineer Guest
-
zoeski80 #4
Re: cfselect values
Hi TheEngineer
I haven't really used CFSELECT before but the attached code works
It looks like wtih CFSELECT you can only specify one query column for the
VALUE attribute - SO make first name and last name into one column in the query
....
Not sure if there is a better way but like I said, I haven't used CFSELECT
before.
Zoe
zoeski80 Guest
-
zoeski80 #5
Re: cfselect values
whoops, code might help ...
<CFQUERY NAME="tenants" Datasource ... >
SELECT first_name + ' ' + last_name as user_name
FROM users
</CFQUERY>
<CFOUTPUT>
<CFFORM ACTION="test.cfm" METHOD="POST">
<cfselect name="tenant" query="tenants" VALUE="user_name">
</cfselect>
</CFFORM>
</CFOUTPUT>
zoeski80 Guest
-
TheEngineer #6
Re: cfselect values
Thanks that solved the problem. I never even thought about combining the 2 columns in a SQL statement prior tocalling them in the drop down menu. Typical newbie move on my behalf.
TheEngineer Guest



Reply With Quote

