<select name="Env" width="180"
onchange="document.getElementById('ReqNumber').value=this.value +
'-#dateformat(now(), "ddmmyy")#'">
<option value="">Select</option>
<option value="prod">Production</option>
<option value="beta">Beta</option>
</select>
<input name="ReqNumber" id="ReqNumber" type="text" value="" width="90" >
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com
-----Original Message-----
From: nagaraj cfm [mailto:[email protected]]
Sent: Saturday, June 11, 2011 5:20 PM
To: cf-talk
Subject: autopopulate text field from dropdown value
Hi, I wanted to populate my text field information based on dropdown value.
<cfselect name="Env" width="180" >
<cfoutput>
<option value="" >Select</option>
<option value="prod" >Production</option>
<option value="beta" >Beta</option>
</cfoutput>
</cfselect>
<cfinput
<cfinput name="ReqNumber" type="text" value="" width="90" >
Requestnumber textfield should be displayed automatically like this
Prod-110611 (env field value - currnet day month year) if user selects prod
and following value should be displayed beta-110611 if user selcts beta from
dropdown.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345178
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm