Form conditions and calculations

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
User avatar
miguelss
 
 
Posts: 155
Joined: Thu Aug 15, 2013 12:25 pm
Location: Madrid, Spain

Form conditions and calculations

Post by miguelss »

Hi everybody,

I'm playing with the "Form conditions and calculations" and it awesome!! Congrats @Pablo!
But, it is possible to limit the number of decimals on the end results?

I mean, when I create some calculation, the result has more than 10 decimals!!.
Thanks for the valuable help of this community!
User avatar
Pablo
 
Posts: 23451
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form conditions and calculations

Post by Pablo »

You can use standard JavaScript functions in calculations.

For example:

Code: Select all

String(Number([A]) / Number([B])).toFixed(2))
User avatar
miguelss
 
 
Posts: 155
Joined: Thu Aug 15, 2013 12:25 pm
Location: Madrid, Spain

Re: Form conditions and calculations

Post by miguelss »

Thanks a lot Pablo!
It works perfectly!!!
You have another beer into your account :lol:
Post Reply