TOPIC:

Next button does'nt work 1 year 3 months ago #238240

  • Topic Author
  • maangles
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 20
  • Thanks: 0
Hello Mihaela,
Following my last post, the element now is visible, its visibility rule was wrong written.
But the result is always wrong i don't understand why
Thanks again for your help.
Regards
Marc-André

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

Next button does'nt work 1 year 3 months ago #238243

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 415
Hello,

I have been inspecting your form for quite some time now and came to the conclusion that you have had some errors in your form.

I have turned off the Actionscript for the "amountowingw" element at the end of the third page.
When this script is turned off the calculation for "amountowing" started working partially.

The main problem was that in the actionscript for the "amountowing" element on the second page you were using this statement:
if (ff_getElementByName('workshopholidayparties').checked)
     {
          ff_getElementByName('amountowing').value = 
          Number(ff_getElementByName('amountowing').value) + Number(ff_getElementByName('workshopholidayparties').value);
     }
That can't work since "workshopholidayparties" is a radio group element.

I've replaced that with this code:
if (jQuery('[name="ff_nm_workshopholidayparties[]"]:checked').val())
     {
          ff_getElementByName('amountowing').value = 
          Number(ff_getElementByName('amountowing').value) + Number(jQuery('[name="ff_nm_workshopholidayparties[]"]:checked').val());
     }
Afterwards, the value of this radio group was added to the sum.

The total in "amountowing" now shows a more similar value to what was expected. Despite that, the sum is still not correct so I assume that you have set this part incorrectly for some other radio or checkbox group so please check that and try to fix accordingly.

Let me know the result.

Regards,

Mihaela

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

Next button does'nt work 1 year 2 months ago #238258

  • Topic Author
  • maangles
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 20
  • Thanks: 0
Hi Mihaela !

Your last post has done wonders here. With your scripts, the form is now 99% ready. It remains only to develop the reply mail.

In this one, we recap all validated elements that contain a value to pay. This is as follows:

Votre séjour, vos options Montant (€)
Tarif du séjour base chambre triple 529 € - REMISE NOEL 10 €  {Mntchambre:value}
Supplément chambre Individuelle PARK {chambreindividuelle:value}
Supplément chambre dble/ twin PARK {supdoubletwinpark:value}
Supplément chambre double ou twin SUITES {supdoubletwinsuites:value}
Supplément chambre triple SUITES {suptriplesuites:value}
Supplément chambre quadruple SUITES {supquadruple:value}
Réduction enfant - 12 ans ch Triple {reductionenfant:value}
Transfert autocar {transfertautocar:value}
   
TOTAL {amountowing:value}

How can i write to display only items containing a value in this email ?

Thank you for this last return after which we will be 100% OK

Best regards

Marc-André.

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

Moderators: ForumSupport
Time to create page: 0.042 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!