fields hidden and calculate
Hello everybody
I have 2 check boxes and a text box. The first checkbox is "ohne MwSt." and the second checkbox is "mit MwSt."
In the text field is the value of the VAT (3.7%) calculated from the field "Mietzins".
If the checkbox "ohne MwSt." is activated, then the other checkboxes must be hidden. This works, with the following code:
if (this.getField("ohne_mwst").value == "ohne") {
this.getField("summe_mwst").display = display.hidden;
this.getField("mit_mwst").display = display.hidden;
} else {
this.getField("summe_mwst").display = display.visible;
this.getField("mit_mwst").display = display.visible;
}
the second part is:
If you activate the checkbox "mit MwSt. 3.7%" then the amount in the field "Mietzins" has to be added.
In the field "Total Miete pro Monat" the total amount has to be calculated.
Here is an example with "mit MwSt. 3.7%:

Here is an example with "ohne MwSt.:

Can someone help me?
