The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Message
Hi,
I've created a form with a file upload where only .pdf is allowed. When uploading an other format, a HTML error message appears. How can I create a tailor-made message instead?
Thanks.
Eric
February 17, 2019 at 10:06 pm
Formidable uses the dropzonejs open source library for the upload functionality. I searched through Formidable Pro's code for the word "dropzone" and found where the js file is loaded and where the function is configured. There are no WordPress hooks in this code that you can tap into.
You could try altering the configuration at runtime using custom jQuery, but I have no idea if it will work since I never tried it. Here are the details for how to configure dropzone: https://www.dropzonejs.com/#configuration
February 18, 2019 at 1:42 am
Thanks!
Discussion closed.