Next button does'nt work

  • Posts: 2734
  • Karma: 93
  • Thank you received: 369

mihaela replied the topic: Next button does'nt work

Hello,

After a really extensive inspecting into your form, I have managed to found the cause of this issue.

In the "vidangechamp" button element you have had the following code:
ff_getElementByName('choixpassholiday').value = '';
ff_getElementByName('partiespassholiday').value = '';
ff_getElementByName('fullpassholiday').value = '';
ff_getElementByName('fullpassholidaymaster').value = '';
ff_getElementByName('fullpassholidaybootcamp').value = '';
ff_getElementByName('optionpassholiday').value = '';
ff_getElementByName('masterclass').value = '';
ff_getElementByName('choixworkshop').value = '';
ff_getElementByName('choixdanses').value = '';
while it should be put inside a function like this:
function ff_vidangechamp_action(element, action)
{
    ff_getElementByName('choixpassholiday').value = '';
ff_getElementByName('partiespassholiday').value = '';
ff_getElementByName('fullpassholiday').value = '';
ff_getElementByName('fullpassholidaymaster').value = '';
ff_getElementByName('fullpassholidaybootcamp').value = '';
ff_getElementByName('optionpassholiday').value = '';
ff_getElementByName('masterclass').value = '';
ff_getElementByName('choixworkshop').value = '';
ff_getElementByName('choixdanses').value = '';
} // ff_vidangechamp_action

I have replaced it in your form and was successfully passed to the second page afterward.

Let me know whether that resolves the issue.

Also, I have to note that you have an error in the ff_amountowing_action Actionscript function. From the error, I suppose that you are checking if a certain checkbox is checked and that you have used the wrong field name or something like that.

Regards,

Mihaela
#238201
  • 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

Thanks a lot for resolve ...

really, it's not easy to work with newbies !

The form is once again stopped on account of the same problem : impossible to go nextpage.

I have no tool to finf the exact place where the mistake is, indicate by the web inspector ( look at the screen capture below)

Could you find the error please ?

I'm very sorry ... Thanks again !

Marc-André
#238206
Attachments:
  • maangles
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0

maangles replied the topic: Next button does'nt work

Hello

The problem of my last post is now OK.
Thank you for help .

Is it possible to get the value of one choix of radio box and sens it by the amountowing ?

Il look for a solution in that case.

Thank you very much .

Marc-André
#238212
  • 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,

I hope you are fine.

All the week end long, I continue to work on my form.

Now, I need to transfer the value of choosing a radio button to another element that needs to display it. At the same time, this value must be added.

The starting radio button element is called:

workshopholidayparties

and it contains this :

0;1 WORKSHOP 45 €;45
0;2 WORKSHOPS 90 €;90
0;3 WORKSHOPS 135 €;135
0;4 WORKSHOPS 180 €;180
0;5 WORKSHOPS 225 €;225
0;6 WORKSHOPS 270 €;270
0;7 WORKSHOPS 315 €;315

I put this framework script in the script action by clic :

function ff_workshopholidayparties_action(element, action)
{
switch (action) {
case 'click':
if(element.checked){
ff_getElementByName('mntworkshophp').value = jQuery('[name="ff_nm_workshopholidayparties[]"]:checked').val();
ff_amountowing_action(element,action);
}
else{
ff_getElementByName('mntworkshophp').value ='';

}
break;
default:;
} // switch
} // ff_workshopholidayparties_action

The destination element of this chosen value is:

mntworkshophp.

There, i put this framework script.


function ff_mntworkshophp_action(element, action)
{
ff_getElementByName('mntworkshophp').value = 0;
{ff_getElementByName('mntworkshophp').value =
jQuery('[name="ff_nm_workshopholidayparties[]"]:checked').val();
}} // ff_Champ_action


Unfortunately it does not work. Can you please look at where is the syntax error ?

It's the first time i'm using this code ...

Thanks a lot for help, hope read you soon.

Best regards.

Marc-André.
#238215
  • Posts: 2734
  • Karma: 93
  • Thank you received: 369

mihaela replied the topic: Next button does'nt work

Hello,

I am fine, thank you.

I've tested your code on my site and it is working fine for me.

Please check whether you have checked the "Click" checkbox in the Actionscript section of the workshopholidayparties element.

Let me know the result.

Regards,

Mihaela
#238225
  • 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,
Thanks for reply and happy to know tha teh code is working well yur site. It's not ok here.

Could you have a test with our ID and password on our form (CYM2020) ?

P1:Semaine "HOLIDAY" : checked
chambre individuelle 195€ :cheked

P2: PARTIES PASS HOLIDAY 110€ : selected
JE CHOISIS LE PARTIES PAS HOLIDAY A 110 € : checked
WORK SHOP PARTIES 45 € : selected
2 WORKSHOPS 90 € : checked

P3 : amountowing result
  1. at first the element mntworshophp is not visible
    secondly the result is wrong : 368 + 195 + 110 + 90 = 763 instead of 165 € displayed

Could you look at this please on our backend ?

Thank you very much .

Regards

Marc-André
#238229
Moderators: ForumSupporttomeperica
Time to create page: 0.187 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