TOPIC:

calculations with text fields and averages 1 week 4 days ago #252613

  • tihana.krivic's Avatar
  • tihana.krivic
  • Away
  • Moderator
  • Moderator
  • Posts: 2994
  • Karma: 3
  • Thanks: 256
Hi,

please check this:
crosstec.org/en/forums/3-breezingforms-f...ut-field.html#251608

Here you can find the code for force 2 decimal places example 100,05

If you need more help, please let me know

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

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

calculations with text fields and averages 1 week 4 days ago #252619

  • Topic Author
  • Luisserafim
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 152
  • Thanks: 0
Hi Tihana!

This is only for input fields.

How can I apply to a read only result field?

I have this function in the advance :

function ff_dcrmi_action(element,action)
{
ff_getElementByName('dcrmi').value=ff_getElementByName('dcrai').value/12;
} // ff_dcrmi_action



Tx in advance

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

Last edit: Post by Luisserafim.

calculations with text fields and averages 1 week 4 days ago #252621

  • tihana.krivic's Avatar
  • tihana.krivic
  • Away
  • Moderator
  • Moderator
  • Posts: 2994
  • Karma: 3
  • Thanks: 256
Hi,

like this:
function ff_dcrmi_action(element,action)
{
var result=ff_getElementByName('dcrai').value/12;
var result1=result.toFixed(2);
ff_getElementByName('dcrmi').value=result1
} // ff_dcrmi_action

Hope this helps

Regards,
Tihana

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

calculations with text fields and averages 1 week 4 days ago #252625

  • Topic Author
  • Luisserafim
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 152
  • Thanks: 0
Hi Tihana!

Sorry but doest work.

Tried in TestLuis but the result is 134141234,6666666

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

calculations with text fields and averages 1 week 4 days ago #252626

  • tihana.krivic's Avatar
  • tihana.krivic
  • Away
  • Moderator
  • Moderator
  • Posts: 2994
  • Karma: 3
  • Thanks: 256
Hi,

for me it works.
I added this code in each field.

Here is edited old example for you (name of this form is exampleLuis812021):

File Attachment:

File Name: exampleLuis.zip
File Size:13 KB


Regards,
Tihana
Attachments:
The following user(s) said Thank You: Luisserafim

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

calculations with text fields and averages 4 days 22 hours ago #252876

  • Topic Author
  • Luisserafim
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 152
  • Thanks: 0
Hi Tihana!

Everything is working fine but we have a problem.

In Portugal we use the comma in decimal places and the period for thousands, for example:

This is wrong € 1,000.00 (american way)

Correct form 1.000,00 € (europe way)

How can we change this?

Best Regards

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

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