Hi,
I need to edit the class field of the form element. Specifically I want to use dropzone.js (http://www.dropzonejs.com/).
So for example :
<form action="/file-upload"
class="dropzone"
id="my-awesome-dropzone"></form>
The chronoform wiki specifies that <form . . . > and </form> tags should be removed from any custom HTML or your form will probably not work correctly so i am not sure how to do this. Any ideas?
Best Regards
Shane Dempsey
I need to edit the class field of the form element. Specifically I want to use dropzone.js (http://www.dropzonejs.com/).
So for example :
<form action="/file-upload"
class="dropzone"
id="my-awesome-dropzone"></form>
The chronoform wiki specifies that <form . . . > and </form> tags should be removed from any custom HTML or your form will probably not work correctly so i am not sure how to do this. Any ideas?
Best Regards
Shane Dempsey
Hi Shane,
You can add a Class to the <form> tag directly in the HTML (Render Form) action. I was able to get the front-end of dropzoen to work by doing that, putting the dropzone js and css files into the /components/com_chronoforms5/extras/dropzone folder and adding this in a Custom Code action in the On Load event of the form:
Bob
You can add a Class to the <form> tag directly in the HTML (Render Form) action. I was able to get the front-end of dropzoen to work by doing that, putting the dropzone js and css files into the /components/com_chronoforms5/extras/dropzone folder and adding this in a Custom Code action in the On Load event of the form:
<?php
$jdoc = JFactory::getDocument();
$jdoc->addScript(JURI::root().'components/com_chronoforms5/extras/dropzone/dropzone.js');
$jdoc->addStylesheet(JURI::root().'components/com_chronoforms5/extras/dropzone/dropzone.css');
?>
But, so far, while I can see that files appear to be being uploaded I haven't been able to get ChronoForms to locate them.
Bob
This topic is locked and no more replies can be posted.