Criterion Problem | WordPress.org

[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.

Hesaplama

(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];
})();
  • This topic was modified 1 hour, 30 minutes ago by pexel.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer