TOPIC:

Reset the form doesn't reset radiobuttons. 1 year 1 week ago #236792

  • Topic Author
  • michiel@TSS
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 102
  • Thanks: 0
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

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

Reset the form doesn't reset radiobuttons. 1 year 6 days ago #236797

  • MarioPuco's Avatar
  • MarioPuco
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 5958
  • Karma: 119
  • Thanks: 554
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

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

Reset the form doesn't reset radiobuttons. 1 year 6 days ago #236798

  • Topic Author
  • michiel@TSS
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 102
  • Thanks: 0
Sorry for the confusion.

With this all will be reset except the radiobuttons..
How can we make it so those also will be reset.

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

Reset the form doesn't reset radiobuttons. 1 year 6 days ago #236800

  • MarioPuco's Avatar
  • MarioPuco
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 5958
  • Karma: 119
  • Thanks: 554
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

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

Last edit: Post by MarioPuco.

Reset the form doesn't reset radiobuttons. 1 year 6 days ago #236801

  • Topic Author
  • michiel@TSS
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 102
  • Thanks: 0
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?

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

Reset the form doesn't reset radiobuttons. 1 year 6 days ago #236804

  • MarioPuco's Avatar
  • MarioPuco
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 5958
  • Karma: 119
  • Thanks: 554
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

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

Moderators: ForumSupport
Time to create page: 0.052 seconds

July Sale!

Discounts for all of our extensions + support. Ending July 31st!

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!