-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflict with Multiple File Upload field #20
Comments
I have same problem with Multiple Form Instances version 1.1.1 and Wordpress version 4.6.1 |
You can solve this by adding the following snippet in your theme's functions.php file:
As you can see, my example only covers form with ID 2. I'll try to make a few pull requests when i got more time, one to extend the filter parameters, and the second to simply add the needed string for file uploads deletion in https://github.com/tyxla/Gravity-Forms-Multiple-Form-Instances/blob/master/gravityforms-multiple-form-instances.php |
Thanks medfreeman Your code is correct when you reload the form but not live when you upload a document. |
Update that works with multifile uploads: REMOVED CODE And you'll also need this javascript snippet somewhere: REMOVED CODE edit: i have this functionality working on this branch of my fork, i'll submit this as a pull request when the previous PR are merged, and if the employed method is the best we can come up with, since it needs using a modified copy of a gravity forms javascript file. |
@medfreeman thank you for this! Would you like to contribute it as a PR so we can fix that in the next version? |
Thanks. |
…ields, add javascript to unbind gravity forms setup function, add modified javascript file from gravity forms source, add corresponding tests fixes tyxla#20
I'm afraid the approach i used is the best i can come up with. |
I just figured that i can do this in a simpler way. |
@medfreeman that would be really awesome. I'm reluctant to introduce an entire file from a premium plugin in an OSS repo :) Thank you! |
done! |
there's a few spacing problems, i added the fix to the pr. |
Thanks @medfreeman, I appreciate your contribution! I'll have a look in the next few days. |
Hey, what do you think of my PR ? |
Hey @medfreeman, thanks for your PR! To be honest, I'm not anxious to introduce external JS files into the plugin, especially if they include functions from the original plugin. That wouldn't be a problem if Gravity Forms were open source, but unfortunately that's not the case. |
Gravity Forms is indeed opensource, GPL-3.0. |
@medfreeman good call, I didn't expect for them to be GPL while being a premium plugin. Can I recommend that you make the code compliant with the WordPress Coding Standards? Thanks in advance! 👍 |
Gravity Forms: Multiple Form Instances version: 1.1.1
Wordpress version: 4.6.1
Plugin prevents "delete file" event in the Multiple File Upload field.
The text was updated successfully, but these errors were encountered: