Custom submit button acts different than standard submit

  • rd
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 68
  • Thank you received: 2

rd created the topic: Custom submit button acts different than standard submit

the submit button with Action Script ff_validate_submit is not doing the same as the standard submit button.

We have an upload element (jpg) and a customized pdf. The Jpg should be submitted and displayed in the pdf.

This is working fine when using the standard submit button.

Normally when hitting the submit button you see the progress bars while uploading the jpgs but not for the The Submit button with Action Script ff_validate_submit. Anything else in the form is being submitted, but not the JPGs.

Please see screenshots:


Any idea?
Thank you
Rolf
#236521
Attachments:
  • Posts: 5896
  • Karma: 118
  • Thank you received: 544

MarioPuco replied the topic: Custom submit button acts different than standard submit

Hi,

I think you are missing bfDoFlashUpload instead of ff_validate_submit

Please try the following :

1) Form Properties > Include submit button > set it to "No"
2) Go to your last from page and Create New element > Type > "Submit Button"
3) Give this button Value, Name, Label > "Submit"
4) Go to Submit button advanced options > ActionScript> Custom > Check "Click" > Press " Create Code framework" and add bfDoFlashUpload() it should look like this :
ff_Submit_action(element, action)
{
    switch (action) {
        case 'click':
bfDoFlashUpload()
            break;
        default:;
    } // switch
} // ff_Submit_action

Upload should work afterwards.

Regards,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#236523
  • rd
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 68
  • Thank you received: 2

rd replied the topic: Custom submit button acts different than standard submit

that's it! great -- thank you Mario
#236527
  • Posts: 5896
  • Karma: 118
  • Thank you received: 544

MarioPuco replied the topic: Custom submit button acts different than standard submit

Hi,

Great !
I'm glad it's working !!

Regards,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#236528
  • rd
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 68
  • Thank you received: 2

rd replied the topic: Custom submit button acts different than standard submit

is it ok to use both together?

Form Properties > Include submit button > set it to "Yes"
plus Submit Button
#236529
  • Posts: 5896
  • Karma: 118
  • Thank you received: 544

MarioPuco replied the topic: Custom submit button acts different than standard submit

Hi,

You can use both of course.
Both will upload / send the form.
Only thing is that CUSTOM SUBMIT needs bfDoFlashUpload() in order to upload the files with HTML5 element.

Regards,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#236531
The following user(s) said Thank You: rd
Moderators: ForumSupporttomeperica
Time to create page: 0.281 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