Going a bit mad! I should know how to do this but my brain is not working
today....
when the form below is submitted if the checkbox is checked I want to update
the option on the valueId (which is a hidden field) and keep looping all the
results only updating option have is ticked. however once submitted how will I
know what checkbox ticked corresponded with what valueId?
<cfoutput query="rc.option" group="name">
<tr class="tableBG2">
<td class="borderleft"> </td>
<td><b>#rc.option.name#</b></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<cfoutput>
<cfset current =
storeService.getCurrentOptions(prodID=#rc.ProdcutBean.getprodId()#,valueID=#rc.option.valueID#)>
<!--- <cfdump var="#current#">--->
<tr>
<td class="borderleft"> <input type="checkbox" <cfif current.idexists
eq 1> checked="checked" </cfif> /></td>
<td> #rc.option.value#</td>
<td>+ £ <input value="#NumberFormat(current.optionPrice,99.99)#"
type="text" name="optionPrice" size="3" /> extra</td>
<td> </td>
<td> </td>
</tr>
<input type="hidden" value="valueId" name="#rc.option.valueId#" />
</cfoutput>
</cfoutput>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326630
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4