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: 2726
  • Karma: 93
  • Thank you received: 369

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: ForumSupporttomeperica
Time to create page: 0.064 seconds

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!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

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

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

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!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here