TOPIC:

Can I have field based calculation using Breeze forms 1 year 6 months ago #266659

  • Topic Author
  • MDS
  • Offline
  • New Member
  • New Member
  • Registered
  • 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 1 year 6 months ago #266665

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 786
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 1 year 2 months ago #271479

  • DSFCosta Rica
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 16
  • 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 1 year 2 months ago #271481

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 786
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 1 year 2 months ago #271521

  • DSFCosta Rica
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 16
  • 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 1 year 2 months ago #271530

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 786
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:
The following user(s) said Thank You: DSFCosta Rica

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

Time to create page: 0.071 seconds

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

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

Subscribe to news and updates!

Special Offer

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!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!