Reset the form doesn't reset radiobuttons.

  • michiel@TSS
  • Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 94
  • Thank you received: 0

michiel@TSS created the topic: Reset the form doesn't reset radiobuttons.

Hello,

I have put this code: for a button to reset the form and go back to page 1
function ff_HERBEREKENEN_action(element, action)
{
switch (action) {
case 'click':
eval('document.'+ff_processor.form_id).reset();
ff_switchpage(1);
break;
default:;
} // switch
} // ff_HERBEREKENEN_action

It will reset the form but when i make a different choice in the first page in the last page the section of the first one will keep up showing in the last page..
The form is online and can be found here:https://www.bluepoint-webdesign.nl/prijzen by clicken on the blue button Bereken hier it shows in a pop up.. When i click on website and then volgende on the 3th page. There are 3 options as images.. When clicking on on image you see a text appear underneath.. make a choice.. then volgende this is a summary page works fine.. again volgende.. And you see the last page.. oke all looks ok .. but when clicking on the reset button the green HERBEREKENEN you go back to page 1 of the form.. that is fine now the same for webshop.. In the last page now the section of the first choice page 3 will keep up on showing in the last page.. it will not turn of! the choice with images is a radiobutton group and will not be reset by this button the checkboxes is no problem how can we solve this??
Thanks
#236792
  • Posts: 5957
  • Karma: 118
  • Thank you received: 553

MarioPuco replied the topic: Reset the form doesn't reset radiobuttons.

Hi,

Very confused with entire post but I understand the issue.
From the top of my head why don't you reset those checkboxes manually ?

Something like this :
jQuery('input[name="YOURCHECKBOXNAME"]').prop('checked', false);

Regards,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#236797
  • michiel@TSS
  • Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 94
  • Thank you received: 0

michiel@TSS replied the topic: Reset the form doesn't reset radiobuttons.

Sorry for the confusion.

With this all will be reset except the radiobuttons..
How can we make it so those also will be reset.
#236798
  • Posts: 5957
  • Karma: 118
  • Thank you received: 553

MarioPuco replied the topic: Reset the form doesn't reset radiobuttons.

Hi,

I was thinking about this :
function ff_HERBEREKENEN_action(element, action)
{
switch (action) {
case 'click':
eval('document.'+ff_processor.form_id).reset();
jQuery('input[name="YOURCHECKBOXNAME"]').prop('checked', false);
ff_switchpage(1);
break;
default:;
} // switch
} // ff_HERBEREKENEN_action

Please let me know if it works.

Regards,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#236800
  • michiel@TSS
  • Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 94
  • Thank you received: 0

michiel@TSS replied the topic: Reset the form doesn't reset radiobuttons.

This does not work. With the code we use the checkboxes will reset.. but the radiogroups are not.. Is there a simalar way to do with the radiogroups?
#236801
  • Posts: 5957
  • Karma: 118
  • Thank you received: 553

MarioPuco replied the topic: Reset the form doesn't reset radiobuttons.

Hi,

Can you send me how you definied this checkboxgroup ?
I mean how did you format this in "Group" box ? By default it's
1;Yes;yes
0;No;no

Regards,
mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#236804
Moderators: ForumSupporttomeperica
Time to create page: 0.072 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