TOPIC:

Berechnung mit 2-Kommastellen 5 months 2 weeks ago #248071

  • Topic Author
  • 1987Jan
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 122
  • Thanks: 1
Guten Morgen ,

es gibt leider doch noch ein Fehler und zwar 0 - syntax error, unexpected '='. Ich kann mir aber nicht erklären wo genau.

Wenn ich bei Google auf "Prüfen" klicke, dann steht dort
POST : bereitschaft-eckernfoerde.de/index.php/einsatzabrechnung 500 // einsatzabrechnung:1 (damit kann ich nichts anfangen :D)

Der Code in Formular ->Erweitert ->Mehr Otion ->Skript->Init.skript sieht folgender Maßen aus



ERLEDIGT :)

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

Last edit: Post by 1987Jan.

[ready] Berechnung mit 2-Kommastellen 3 weeks 14 hours ago #253702

  • papin0
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 35
  • Thanks: 0
i have the same situation but this is not working for me.
This is what I have:
function ff_accumulated1_action(element, action)
{
ff_getElementByName('accumulated1').value = 0;
{
ff_getElementByName('accumulated1').value =
Number(ff_getElementByName('miles1').value) * Number(ff_getElementByName('rate1').value);
}
} // ff_accumulated1_action

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

[ready] Berechnung mit 2-Kommastellen 3 weeks 5 hours ago #253708

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

did you add the code in each fields (miles1, rate1 too)?

Ok, this is code for accumulated1 element:
function ff_accumulated1_action(element, action)
{
ff_getElementByName('accumulated1').value = 0;
{
ff_getElementByName('accumulated1').value =
Number(ff_getElementByName('miles1').value) * Number(ff_getElementByName('rate1').value);
}
} // ff_accumulated1_action
In your miles1 element->Advanced->Actionscript->check Custom->check Change put:
function ff_miles1_action(element, action)
{
ff_accumulated1_action(element, action);
} // ff_miles_action

and in element rate1->Advanced->Actionscript->check Custom->check Change:
function ff_rate1_action(element, action)
{
ff_accumulated1_action(element, action);
} // ff_rate1_action

Regards,
Tihana

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

Last edit: Post by tihana.krivic.
Moderators: ForumSupport
Time to create page: 0.046 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!