jquery-steps icon indicating copy to clipboard operation
jquery-steps copied to clipboard

Dropzone.js not work !

Open mohammadsalehnia opened this issue 6 years ago • 3 comments

Dropzone not working on jquery-steps

mohammadsalehnia avatar Oct 11 '19 10:10 mohammadsalehnia

@mohammad-salehnia Hi, have you figured out this one?

fatinmira97 avatar Oct 14 '19 07:10 fatinmira97

I was struggling to fix this same issue. Just try to set "Dropzone.autoDiscover = false;" and be sure to instantiate your form with jquery-steps "before" the Dropzone object.

Hope it helps.

vjpamorim avatar Jul 06 '20 19:07 vjpamorim

Thanks @vjpamorim for your comment. It works but it took me some time to understand. I got it working using programmatic way of making dropzones. For anyone who might be having similar problems - Just

  • create a basic wizard. I did not used forms for creating a wizard. Instead I used this - <div id="wizard"> ... </div>

  • Add dropzones programatticaly like this- <div class="dropzone" id="dropzoneForm"> ... </div>

  • Then write the script as follows - <script> Dropzone.autoDiscover = false; $(document).ready(function(){ $("#wizard").steps(); var newDropZone = new Dropzone("div#dropzoneForm", {url : "/your/url"}); }); </script>

That's it! Hope it helps.

davindrsingh avatar Sep 09 '20 04:09 davindrsingh