Form calculation not working properly

Issues related to forms.
Post Reply
User avatar
ruel.lago22
 
 
Posts: 59
Joined: Thu Feb 01, 2018 11:32 am

Form calculation not working properly

Post 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
User avatar
Pablo
 
Posts: 22491
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form calculation not working properly

Post 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)
User avatar
ruel.lago22
 
 
Posts: 59
Joined: Thu Feb 01, 2018 11:32 am

Re: Form calculation not working properly

Post by ruel.lago22 »

Hi Pablo,

Got it. Thank you!

Regards,
Ruel
User avatar
ruel.lago22
 
 
Posts: 59
Joined: Thu Feb 01, 2018 11:32 am

Re: Form calculation not working properly

Post 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
User avatar
Pablo
 
Posts: 22491
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form calculation not working properly

Post 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.
Post Reply