TOPIC:

Clear value of all elements in a section? 2 months 3 weeks ago #272309

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 10535
  • Karma: 3
  • Thanks: 705
Hi,

super, I am glad I was able to help

If you need anything else, feel free to ask

Regards,
Tihana

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

Clear value of all elements in a section? 1 month 4 days ago #274459

  • Tonimj
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 1
  • Thanks: 0
oh thats great. I am also looking for code

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

Clear value of all elements in a section? 1 month 4 days ago #274460

  • Topic Author
  • jdwires
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 22
  • Thanks: 0
I got it to work but not exactly as suggested above. I did not use the setInterval() function to avoid unnecessary javascript from executing. For my button I added a custom ActionScript and used the create code framework :
function ff_clearMySection_action(element, action)
{
    switch (action) {
        case 'click':
        clearMySection();//this line added 
            break;
        default:;
    } // switch
} // ff_clearMySection_action

In the Initialization Script, I added the custom script with the create code framework:
function ff_mail_test_init()
{//this is just the default code framework
} // ff_mail_test_init

function clearMySection() {
  jQuery('#mySection input').each(function() {
    jQuery(this).val('');
  });
};

I couldn't get the reset() method to work so I just used the val() method to set the value to nothing. If you wanted also to hide the section, you would need to add the bfToggleFields() function call to the clearMySection() function.

Hope this helps.

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

Clear value of all elements in a section? 1 month 1 day ago #274490

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 10535
  • Karma: 3
  • Thanks: 705
Hi,

super :D

Regards,
Tihana

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

  • Page:
  • 1
  • 2
Time to create page: 0.039 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

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!