TOPIC:

JacaScript: reset Signature and html file upload 3 weeks 5 days ago #257426

  • Topic Author
  • rd
  • Away
  • Expert Breezer
  • Expert Breezer
  • Posts: 245
  • Thanks: 2
Hello,

how can I reset
1) a Signature field
2) a HTML File Upoload
using java script
function ff_Switch_action(element, action)
{
    switch (action) {
        case 'change':
        if (element.value == "reset")
        { 
            how to reset Signature field
            how to reset html file upload element
        }
              break;
        default:;
    } // switch
} // ff_Switch_action


I have a Select list. If a certain value is choosen certain signaturefields and File upload fields should be reset.

Any help is appreciated
Regards Rolf

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

JacaScript: reset Signature and html file upload 3 weeks 5 days ago #257430

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

basically it is a little hard to get because in HTML5 upload you can see red x button form remove file, and for signature there is Reset button.

If this is default upload then this can be clear with:
ff_getElementByName('nameoffileupload').value='';

I will try to find the code for this and get back to you

Regards,
Tihana
The following user(s) said Thank You: rd

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

JacaScript: reset Signature and html file upload 3 weeks 4 days ago #257450

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 5366
  • Karma: 3
  • Thanks: 383
Hi again,

if you want to clear HTML5 upload then:
function ff_Switch_action(element, action)
{
    switch (action) {
        case 'change':
        if (element.value == "reset")
        { 
          jQuery('#bfFlashFileQueue6160').empty();
        }
              break;
        default:;
    } // switch
} // ff_Switch_action
Please replace #bfFlashFileQueue6160 with ID of upload (right click to browser->Inspect->Console->find ID).

I will find the code for signature and get back to you again

Regards,
Tihana

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

JacaScript: reset Signature and html file upload 3 weeks 4 days ago #257451

  • Topic Author
  • rd
  • Away
  • Expert Breezer
  • Expert Breezer
  • Posts: 245
  • Thanks: 2
Hi again,

yepp, first issue solved , thank you!
btw. it's not the ID it's the value ;-)

Regards Rolf

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

JacaScript: reset Signature and html file upload 3 weeks 4 days ago #257452

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

This:


I am working on issue with Signature

Regards,
Tihana
Attachments:

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

Last edit: Post by tihana.krivic.
  • Page:
  • 1
Time to create page: 0.091 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!