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

Slack Signup
Newsletter Optin
Help Desk

Message

Labels

This Discussion is public

Notifications

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

 

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

Thanks!

Discussion closed.