Ok, Actually. I have mostly figured this out now.
3 fields : OptionName (text) , OptionPrice (decimal) , OptionScript (HTML)
Then default value in the 'OptionScript' is :
<p><input type="checkbox" onclick="if (this.checked) {form.TotalDollars.value=parseFloat(form.TotalDollars.value)+500} else {form.TotalDollars.value=parseFloat(form.TotalDollars.value)-500};document.getElementById('TotalPrice').innerHTML=form.elements['TotalDollars'].value;" id="checkbox" name="checkbox" /> $500</p>
Now, we need to replace the '500' with the actual value in all 3 places.
To display the total I use an HTML module :
$<span id="TotalPrice">0</span></p> <input type="hidden" size="10" value="0" onfocus="form.TotalDollars.blur();return false;show();" id="TotalDollars" name="text" />
This works exactly as I need it but just to make it even easier... is there a way to use a 'token' or 'tag' to replace the 500 with whatever the value in "OptionPrice" is ? Is there a way to call that field ?
thanks