TOPIC:

Can I have field based calculation using Breeze forms 9 months 2 days ago #275210

  • DSFCosta Rica
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 16
  • Thanks: 0
Hello I have a situation here, can you help me please?

In ingreso X field, everything works great, case 1 superb but in case 2 (test2 >=25), I need to show a text and a number from other field and a little more text, but obviously Im getting a lot of problems to make it work.

var test2=ff_getElementByName('ingresoX').value;
if(test2 <= 25) {
ff_getElementByName('CuotaMensaje').value="Excelente";
}
else if(test2 >=25) {
ff_getElementByName('CuotaMensaje').value="you need to change the amount to Number(ff_getElementByName('ExtraMontoFinal').value to make it work";
}

Thanks in advance for your help.

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

Can I have field based calculation using Breeze forms 9 months 2 days ago #275212

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
Hi,

like this:
..
else if(test2 >=25) {
ff_getElementByName('CuotaMensaje').value="you need to change the amount to" + " " + Number(ff_getElementByName('ExtraMontoFinal').value) + " " + " to make it work";
}

Regards,
Tihana

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

Last edit: Post by tihana.krivic. Reason: added )

Can I have field based calculation using Breeze forms 9 months 2 days ago #275236

  • DSFCosta Rica
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 16
  • Thanks: 0
It´s not working... only works if I just left some text.

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

Can I have field based calculation using Breeze forms 9 months 1 day ago #275237

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
Hi,

and like this:
..
else if(test2 >=25) {
ff_getElementByName('CuotaMensaje').value="you need to change the amount to" + " " + Number(ff_getElementByName('ExtraMontoFinal').value) + " " + " to make it work";
}
we missed one ) in the code, sorry

Regards,
Tihana

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

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