cancel
Showing results for 
Search instead for 
Did you mean: 

Show loader on post form

Show loader on post form

Hi @ all!

 

I need a little help. I developed a module, which will send a form with post and the target file will save some data in the SQL database and send an email to the customer. Everything works fine, but unfortunately that takes 5 or 6 second.

 

I saw a nice bootstrap solution here: https://codepen.io/jmalatia/pen/HkmaA

 

But I can't get it to work in my phtml file. The button changes only if the target page is loaded (I can see that by using the back-button), but he should change, and the the action should start.

 

Can somebody help me? Or give an alternative?

 

Greetings from Germany.

 

Michael

1 REPLY 1

Re: Show loader on post form

@mschievink

 

please check below link for reference

 

https://mageu.wordpress.com/2016/05/27/magento2-save-the-form-values-using-ajax/


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer