Integrating Dropzone.js Into A Html Form With Other Form Fields
I would like to add dropzonejs to a form with other elements. I found this sample and followed the instructions, unfortunately the whole from becomes a dropzonejs drop zone: https:
Solution 1:
The class of your form is "dropzone" and that is why the form becomes a dropzone.
Only use the "dropzone" class on the actual element that you want to become a dropzone. For example try to change "dropzone-previews" into "dropzone".
Or if you want to create the dropbox programmatically, use:
Dropzone.autoDiscover = false;
This will turn off the automatic conversion of elements with the class "dropzone".
Solution 2:
I haven't fully tested this, but try adding this div in the place where you want the drop box to be, then use css to style it so that it is the correct dimensions.
<divclass="dz-message"data-dz-message>Text you want in the drop area</div>
Post a Comment for "Integrating Dropzone.js Into A Html Form With Other Form Fields"