TOPIC:

Calculate with Breezing Forms 1 month 4 days ago #263823

  • skamtoo's Avatar Topic Author
  • skamtoo
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 2
  • Thanks: 0
Hi all!

Ive tried this:

crosstec.org/en/support/online-documenta...ting-textfields.html

It works great, but I would like to format the result differently. It should not look like this: 15.5 but like this: 15.50

Anyone have an idea?

Thanks!

Please Log in or Create an account to join the conversation.

Calculate with Breezing Forms 1 month 4 days ago #263824

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 7379
  • Karma: 3
  • Thanks: 528
Hi,

like this:
function ff_number1_action(element, action)
{
var total=
Number(ff_getElementByName('number1').value) +
Number(ff_getElementByName('number2').value);
ff_getElementByName('total').value =total.toFixed(2);
}
function ff_number2_action(element, action)
{
var total=
Number(ff_getElementByName('number1').value) +
Number(ff_getElementByName('number2').value);
ff_getElementByName('total').value =total.toFixed(2);
}
function ff_total_action(element,action)
{
ff_getElementByName('total').value = 0;
{
var total=
Number(ff_getElementByName('number1').value) +
Number(ff_getElementByName('number2').value);
ff_getElementByName('total').value =total.toFixed(2);
}
}
// ff_total_action
This should be added in each elements (like in this documentation).

If you need anything else, feel free to ask

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Last edit: Post by tihana.krivic.

Calculate with Breezing Forms 1 month 4 days ago #263828

  • skamtoo's Avatar Topic Author
  • skamtoo
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 2
  • Thanks: 0
Thank you! It works fine!!! :-)

Please Log in or Create an account to join the conversation.

Calculate with Breezing Forms 1 month 4 days ago #263830

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 7379
  • Karma: 3
  • Thanks: 528
Hi,

np, anytime :)

If you need anything else, feel free to ask

Regards,
Tihana

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.047 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!