Page 1 of 1

Form calculation not working properly

Posted: Sun Jun 16, 2019 12:01 pm
by ruel.lago22
Hi Pablo!

A quick question regarding the form calculation. Radio boxes calculation seems to work just fine but if you add the extra below, instead it adds to the total it literally adds itself after the number total. I have attached the WBS file and you may use it unlock using my registered email address. The link where it is published is noted inside the WBS file. Thank you so much!

https://www.sendfilessecurely.com/getfi ... wfeD1FmVw3

Regards,
Ruel

Re: Form calculation not working properly

Posted: Sun Jun 16, 2019 12:26 pm
by Pablo
You will need to add the value as a number, not as a string.

Related tutorial:
https://www.wysiwygwebbuilder.com/conditions.html
(example 2)

Re: Form calculation not working properly

Posted: Sun Jun 16, 2019 12:30 pm
by ruel.lago22
Hi Pablo,

Got it. Thank you!

Regards,
Ruel

Re: Form calculation not working properly

Posted: Sun Jun 16, 2019 12:50 pm
by ruel.lago22
Hi again Pablo,

Sorry I have one another question in regards to condition to calculate in my extra service part. When they check it, it adds the amount to the total and it worked. I now add a condition where if it is unchecked it will deduct the amount again to the total. Can you please help me with this one, please.

I have attached the updated WBS file and you may unlock using my registered email address. The link where it is published is noted inside the WBS file. Thank you so much!

https://www.sendfilessecurely.com/getfi ... MgNm2AMtUU

Regards,
Ruel

Re: Form calculation not working properly

Posted: Sun Jun 16, 2019 2:19 pm
by Pablo
At the moment I am very busy so I cannot help you with the implementation of your condition. For me, this usually also take a lot of time.
Note however that conditions is standard JavaScript functionality, so the same logic applies.