Changes

Multiple product calculation

186 bytes added, 03:01, 22 March 2014
no edit summary
== Create the Variables ==
 
''var tempCost = 0;''
''int_times[5]=0;''
 
''var int_star=new Array();''
int_times[0]=1.90; And the rest of the array will be all set to zero
== Getting the selected values from the Drop down lists ==
''var strCDA_X_field_0_X = document.getElementById('strCDA_X_field_0_X ');//Times monMonday issue''
''var strCDA_X_field_0_X = document.getElementById('strCDA_X_field_0_X ');//Times tueTuesday issue''
''var strCDA_X_field_0_X = document.getElementById('strCDA_X_field_0_X ');//Times wedWednesday issue''
''var strCDA_X_field_0_X = document.getElementById('strCDA_X_field_0_X ');//Times thurThursday issue''
''var strCDA_X_field_0_X = document.getElementById('strCDA_X_field_0_X ');//Times friFriday issue''
''var strCDA_X_field_0_X = document.getElementById('strCDA_X_field_0_X ');//Times satSaturday issue''
''var strCDA_X_field_0_X = document.getElementById('strCDA_X_field_0_X ');//Star monMonday issue''
''var strCDA_X_field_0_X = document.getElementById('strCDA_X_field_0_X ');//Star tueTuesday issue''
''var strCDA_X_field_0_X = document.getElementById('strCDA_X_field_0_X ');//Star wedWednesday issue''
''var strCDA_X_field_0_X = document.getElementById('strCDA_X_field_0_X ');//Star thurThursday issue''
''var strCDA_X_field_0_X = document.getElementById('strCDA_X_field_0_X ');//Star friFriday issue''
''var strCDA_X_field_0_X = document.getElementById('strCDA_X_field_0_X ');//Star sat''
This is getting the values that are associated with the the drop down lists in the campaign
To adapt this to a new campaign where it says 'strCDA_X_field_0_X ' simply swap the 'X' for the numbers associated fields in your campaign
 
 
== Calculating the Cost of the combinations of the products selected ==
To adapt this to a new campaign where it says 'strCDA_X_field_0_X ' simply swap the 'X' for the numbers associated fields in your campaign
----
 
 
[[Category:Module Specific:Form Management]]
[[Category:Topic:JavaScript]]
7,528
edits