// version 1
var Number_Tickets = 5;
jQ( document ).ready(function() {
// Set TotalOrder to read only
jQ('input[name="OrderTotal"]').prop('readonly', true);
jQ('select[name="Number_Tickets"]').on('change', function() {
if (jQ(this).val()!=0){
jQ('select[name="Number_Tickets"]').data('price',Number_Tickets);
}else{jQ('select[name="Number_Tickets"]').data('price','');};
calc_dues();
});
// This is the calculate function
function calc_dues() {
jQ('input[name="OrderTotal"]').val(sum_price);
var sum_price = 0;
jQ('select[name^="C"]').each(function(){
if(this.value!= 0 && jQ(this).data('price')!=''){
sum_price += parseFloat(this.value) * parseFloat(jQ(this).data('price'));
jQ('input[name="OrderTotal"]').val("$"+sum_price.toFixed(2));
}
});
}
});</script>
In the Dropdown Element properties in Web Form Builder offers a "Payment" option where I can select price multiplier and set the price. The Select Element in Form Designer has no such selection. I'm wondering if this is accomplished with setting the right attributes.
I don't know how to proceed and would appreciate some assistance. I tried to attach the Form Designer File but I get this error message:
Sorry, we couldn't start the thread for the following reasons:Your attachment must be one of: .TXT, .SNP, .ZIP, .RSD, .RLM, .RLMP, .RED, .GIF, .JPG, or .PNG format.
So instead I'm inserting a dropbox link: https://www.dropbox.com/s/c05rn441nvc5gs9/QueenOfHearts.fdp?dl=0