TOPIC:

Edit file uploading behavior 4 months 4 weeks ago #262973

  • Topic Author
  • monomgabriel
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 78
  • Thanks: 1
Hello,
Thank you for your help on this try to make the submit wait for something.
I have been trying to do this by many ways but I could not find any solution.
Here is why:
My goal is to start uploading the files while in the same time the user can fill some other infos in a popup window (the idea is that the user does'nt loose his time watching the uploading).
The problem is that if the file is small the user doesn't have the time to fill in his infos => He's automatically brought to thank you page at the end of uploading.
What I tried is to delay with a javascript loop in the Submitted script as you suggested BUT this CANNOT be done with javascript since it's a client side language and the browser considers the loop as a bug and stops it.
Simply put: javascript can't wait until something is done.

So my question is:
Can I separate file uploading from form submitting using PHP in Breezingforms?

Thank you again for your help :)

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

Edit file uploading behavior 4 months 3 weeks ago #262990

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

when you click on submit button, image is then uploading, and you can't do two things in the same time.

Basically, in breezingforms,when the form is loaded, users filles the fields, you can add image/file in file upload element, you can populate textfield and other element, but when you click on submit button, then those populated fields is submitted, and this is the reason why you can't do two things in the same time and why you are redirect on thank you page after submit.

I hope I explained it well

Let me know if you need more questions :)

Regards,
Tihana

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

Edit file uploading behavior 4 months 3 weeks ago #263032

  • Topic Author
  • monomgabriel
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 78
  • Thanks: 1
Hello Tihana,
I understand that the submit button sends field values but where can I edit its behavior?
I guess I can go in my Scripts or Pieces to do so but I can't find the right thing to edit.
There is this function called ff_submitForm(); for example. Where can I modify it?
Thank you,
Gabriel

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

Edit file uploading behavior 4 months 3 weeks ago #263037

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

submit button send field values using ff_validate_submit -> triggers all validations, prevents the form from submitting if there are validation errors and submits the form if everything is fine.

You can find this in Manage Scripts

Regards,
Tihana

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

Edit file uploading behavior 4 months 3 weeks ago #263039

  • Topic Author
  • monomgabriel
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 78
  • Thanks: 1
Ok. I see in this script that there's a call to a function named ff_submitForm();
Can I find that somewhere?

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

Edit file uploading behavior 4 months 3 weeks ago #263040

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

you can find it in:
joomlaroot/components/com_breezingforms/facileforms.process.php
you can find it in few line of code, please click on ctrl+F and find it

Regards,
Tihana

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

Last edit: Post by tihana.krivic.
Moderators: ForumSupport
Time to create page: 0.052 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!