DrQuincy Posted June 26, 2020 Share Posted June 26, 2020 I am doing a PW that has a form where users can submit a PDF or Word doc. I am interested in trying FormBuilder and can see that it supports files. What I would like to know is: For file inputs does it have a drag-and-drop file upload progress bar support (like Dropzone.js)? I.e. so if a large file is part of the form there is a progress bar for better UX. I know I could use $.ajax({xhr: function() { window.XMLHttpRequest().upload.addEventListener('progress', (evt) => {})… but wondered if it had all this built in. For larger files I just want some feedback to the user that it has not frozen. Does it handle file validation in the front and back end (using finfo)? Do you have full control over the HTML and CSS used in the forms? As an aside, is it possible to demo FormBuilder, ProFields, etc on a test site before buying? Link to comment Share on other sites More sharing options...
johndoe Posted July 1, 2020 Share Posted July 1, 2020 @DrQuincy You can see how Form Builder handle file inputs here >> https://processwire.com/sites/submit/. To answer some of your questions: Nope. No drag and drop, or upload progress bar as of yet. On the backend I think its just the same as processwire file validation. I don't know about the frontend tho. Yes, there are 3 or 4 output options. You can use built-in styling, or use your custom css/html. Sadly, no demos, but you always have satisfaction guaranteed or your money back. Link to comment Share on other sites More sharing options...
DrQuincy Posted July 2, 2020 Author Share Posted July 2, 2020 Thanks @johndoe. That's useful to know. I seem to be doing more PW sites these days so it will be worth getting the form and fields plugins. Quote I think its just the same as processwire file validation Just checking, did you mean $files? It' not a big deal either way as you can just use finfo_file() in the backend. Front-end you can just check the file extension in case of user error. Let's say you want to add Dropzone JS file uploads that upload immediately after they are added is it easy enough with FormBuilder to write custom front-end jQuery validation so that the form can't be uploaded until there is at least one file uploaded, all files have finished uploading, etc? Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now