TOPIC:

Can I have field based calculation using Breeze forms 6 months 4 weeks ago #266659

  • Topic Author
  • MDS
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 1
  • Thanks: 0
Hi,

Can I get field-based calculations using Breeze forms? Please see the image attached

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

Can I have field based calculation using Breeze forms 6 months 3 weeks ago #266665

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

yes.

Here is documentation:
crosstec.org/en/support/online-documenta...ting-textfields.html

If you need more help, feel free to ask

Regards,
Tihana

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

Can I have field based calculation using Breeze forms 3 months 2 weeks ago #271479

  • DSFCosta Rica
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 14
  • Thanks: 0
Hi, is this possible to just insert, one value( In position Number 1) and to get BF calculate all the other formulas?

In a basic way this are the calculations needed (please check the attachments)
1*7=8
2-1=3
9*10=11
11=4

3+4+5=6

Because I tried many hours but cant make it work.

I based all the work on this article but with no good result:
crosstec.org/en/support/online-documenta...ting-textfields.html
and
crosstec.org/en/support/online-documenta...n-prior-element.html

I really appreciate your help
Alex
Attachments:

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

Can I have field based calculation using Breeze forms 3 months 2 weeks ago #271481

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

could you please send me your form, that I can add the code in the form?

If yes, please export it.

For export, go to Components->Breezingforms->Configuration->Create package->from Form Selection(s)->select only this one form, and click on Continue.
In your PC you will see xml file, please zip it and post it here

Regards,
Tihana
The following user(s) said Thank You: DSFCosta Rica

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

Can I have field based calculation using Breeze forms 3 months 1 week ago #271521

  • DSFCosta Rica
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 14
  • Thanks: 0
For sure, thank you for your fast support.

Warm regards,
Alex
Attachments:

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

Can I have field based calculation using Breeze forms 3 months 1 week ago #271530

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

please go to each element->Advanced->and put Actionscript to None.

Then go to form->Advanced->More options->Scripts->Initialization script->check Custom and put this:
function ff_calculadora_form_init()
{
setInterval('ff_getElementByName("P1").value=ff_getElementByName("TOT1").value',500);
setInterval('calc()', 500);
ff_getElementByName("TotalF").value=ff_getElementByName("SEG1").value;
} // ff_calculadora_form_init

function calc() {
ff_getElementByName('TOT1').value =
Number(ff_getElementByName('NUM1').value) *
Number(ff_getElementByName('NUM2').value);

ff_getElementByName('TotalF').value =
Number(ff_getElementByName('NUM1').value) -
Number(ff_getElementByName('P1').value);

ff_getElementByName('T1').value =
Number(ff_getElementByName('NUM1').value) +
Number(ff_getElementByName('P1').value) +
Number(ff_getElementByName('TotalF').value) +
Number(ff_getElementByName('N2').value)+
Number(ff_getElementByName('N3').value);


ff_getElementByName('TOT1').value =
Number(ff_getElementByName('NUM1').value) *
Number(ff_getElementByName('NUM2').value);

ff_getElementByName('TOT2').value =
Number(ff_getElementByName('SEG1').value) *
Number(ff_getElementByName('SEG2').value);

ff_getElementByName('SEG1').value =
Number(ff_getElementByName('NUM1').value) -
Number(ff_getElementByName('P1').value);

ff_getElementByName('N2').value =
Number(ff_getElementByName('SEG1').value) *
Number(ff_getElementByName('SEG2').value);


}


Regards,
Tihana
Attachments:

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

Time to create page: 0.073 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!