Remember me

Need help understanding the calculation function.

3 weeks 2 days ago #1

  • Ainslie Heilich's Avatar
  • Ainslie Heilich
  • Posts: 3
Are there any in-depth docs for the calculation field?

I am trying to build a form that calculates the amount of two fields and then adds on a fixed amount and then passes this info to Paypal.

Here are the details.
We have lodges that pay dues of $6.00 a year per member.
I need to understand how to use the calculation field to add one field that varies - the number of members
then multiply that amount by $6.00, which is a fixed amount not editable on the user end of the form.
This amount then adds another fixed amount say $2.00 for a processing fee and then this total gets handed over to Paypal.

I have been looking for docs to understand how to do this but I've been unable to locate any.

Help in doing this would be greatly appreciated.

3 weeks 2 days ago #2

  • Ainslie Heilich's Avatar
  • Ainslie Heilich
  • Posts: 3
Would the cart field be better to use for this?

3 weeks 1 day ago #3

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
Hello,
Thank you for contacting us

You can use any mathematical functions
developer.mozilla.org/en-US/docs/Web/Jav.../Global_Objects/Math

In the settings of the calculation field, set “product”
and add cart.
In the settings of the send button, select the payment system (which was configured in integrations)

www.balbooa.com/joomla-forms-documentati...joomla-forms-builder
www.balbooa.com/joomla-forms-documentati...albooa-forms-builder
www.balbooa.com/joomla-forms-documentati...joomla-forms-builder

Regards,
Vyacheslav, Balbooa.com

2 weeks 4 days ago #4

  • Ainslie Heilich's Avatar
  • Ainslie Heilich
  • Posts: 3
Thank you.

2 weeks 2 days ago #5

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
You are welcome ;)
Let us know if you need more assistance!

Best Regards,
Viacheslav, Balbooa Support Team
Powered by Kunena Forum