[ad_1]
Hello;
I’m having trouble designing a form. My problem is this;
I have a Checkboxes area.
Here, my criteria are fieldname38 VALUE in the form of A B C D.
I write the result as follows;
My problem is this; I want it to be calculated when more than one checkbox is selected.
For example, when both A, B, C and D criteria are selected, or only A or B is selected, this field is completely variable.
How can I write separately on my results screen?
When we select more than one criterion, the result is written as 0.
(function() {
var kriter4 = '';
if (fieldname38 === 'A') {
kriter4 = fieldname25 / 120;
} else {
kriter4 = 0;
}
jQuery('#calculation-kriter4').html(kriter4);
jQuery('.kriter4-aciklama').html('Konut Rayiç Bedeli : ');
jQuery('.kriter4-sonuc').html(FORMAT(PREC(kriter4, 2), {groupingsymbol: ".", decimalsymbol: ","}) + ' TL');
return [kriter4];
})();
