Please help:
How can I get the text boxes to populate from the select box.
Thanks
Charlie Crimmel
How can I get the text boxes to populate from the select box.
Thanks
Charlie Crimmel
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<BR>
<body>
<cfscript> qNames = queryNew("id,craft,crdesc,wage,otwage");
queryAddRow(qNames); querySetCell(qNames, "id", "1"); querySetCell(qNames, "craft", "451"); querySetCell(qNames, "crdesc", "ELGF"); querySetCell(qNames, "wage", "20.00"); querySetCell(qNames, "otwage", "30.00");
queryAddRow(qNames); querySetCell(qNames, "id", "2"); querySetCell(qNames, "craft", "452"); querySetCell(qNames, "crdesc", "ELF"); querySetCell(qNames, "wage", "15.00"); querySetCell(qNames, "otwage", "22.00");
queryAddRow(qNames); querySetCell(qNames, "id", "3"); querySetCell(qNames, "craft", "453"); querySetCell(qNames, "crdesc", "ELJ"); querySetCell(qNames, "wage", "10.00"); querySetCell(qNames, "otwage", "15.00");
queryAddRow(qNames); querySetCell(qNames, "id", "4"); querySetCell(qNames, "craft", "454"); querySetCell(qNames, "crdesc", "ELA60"); querySetCell(qNames, "wage", "8.00"); querySetCell(qNames, "otwage", "12.00");
</cfscript>
<table width="100%">
<CFFORM name="MyForm" format="flash" skin="halogreen" preloader="no" method="post" enctype="multipart/form-data" height="800" width="100%" preservedata="Yes">
<cfformgroup type="vdividedbox" width="100%">
<cfformgroup type="hbox" width="100%">
<cfformgroup type="hbox">
<cfformgroup type="panel" Label="Craft Data">
<cfselect name="selectwage" message="Select Craft"
query="qNames"
value="Craft"
display="Craft"
required="NO"
multiple="NO"
selected=""
size="1"
label="Change Empl Craft">
</cfselect>
<cfinput name="Craft" type="text" label="Craft" width="100" >
<cfinput name="Crdesc" type="text" label="Crdesc" width="100" >
<cfinput name="Wage" type="text" label="Wage" width="100" >
<cfinput name="OTWage" type="text" label="OTWage" width="100" >
</cfformgroup></cfformgroup>
</cfformgroup></cfformgroup>
</CFFORM>
</body>
</html>