Next button does'nt work

  • maangles
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0

maangles replied the topic: Next button does'nt work

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é
#238240
  • Posts: 3128
  • Karma: 105
  • Thank you received: 413

mihaela replied the topic: Next button does'nt work

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
#238243
  • maangles
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0

maangles replied the topic: Next button does'nt work

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é.
#238258
Moderators: ForumSupport
Time to create page: 0.048 seconds

We Are Doing Our Part

Massive discounts on all of our extension subscription plans to help you and your business in these times.

Get Your Subscription Here

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

We are doing our part and support your business with extremely low prices -- For example 6-Months-Subscription for only $9 USD. For as long as necessary.

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

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!