Maggie
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Is there a way to prevent same file uploads?Hi Takayuki! Thanks for replying! :))
I have just tried to implement the custom validation script but it is currently not working, please see this test page: https://pacauto.com/new-account-register-test/
I have replaced “!=” to “=” (to invalidate duplicate file attachments).
Form tags I am using for the file attachments:
[file* file-1]
[file* file-2]—
Code below:
<script>
add_filter( ‘wpcf7_validate_file*’, ‘custom_file_confirmation_validation_filter’, 20, 2 );
function custom_file_confirmation_validation_filter( $result, $tag ) {
if ( ‘file-2’ == $tag->name ) {
$your_file_1 = isset( $_POST[‘file-1’] ) ? trim( $_POST[‘file-1’] ) : ”;
$your_file_2 = isset( $_POST[‘file-2’] ) ? trim( $_POST[‘file-2’] ) : ”;if ( $your_file_1 = $your_file_2 ) {
$result->invalidate( $tag, “Please do not submit the same file.” );
}
}return $result;
}</script>
- This reply was modified 2 years, 11 months ago by Maggie.
Forum: Plugins
In reply to: [Contact Form 7] Is there a way to prevent same file uploads?Side note: If this is not possible, is there a way to prevent them from uploading the same file names? This could be a faster method. Thanks!
Hi Takayuki again, I ended up just finding a website that was able to enable this spinner icon and copied their CSS code and put it in mines. As I thought, the initial update of this patch did not call for the “wpcf7-spinner” classname at all.
If anyone is looking for this answer, feel free to just copy my CSS from the page I linked above.
Hi Takayuki, the other plugins are:
Akismet Anti-Spam
Conditional Fields for Contact Form 7
Contact Form 7
Contact Form 7 AutoResponder Addon
CSS & JavaScript Toolbox
Embed Plus for YouTube
Enhanced Text Widget
Google Analytics for WordPress
Jetpack
LiveChat
ManageWP – Worker
Page Builder by SiteOrigin
Page Structure Widget
Page-list
Shortcode Widget
SiteOrigin Widgets Bundle
UpdraftPlus – Backup/Restore
Word Blocks
Wordfence Security
WordPress Exporter
WordPress Importer
WP Activity Log
WP CSV TO DB
WP Maximum Execution Time Exceeded
WP Tables (MySQL)
XML Sitemaps
Yoast Duplicate PostAll are updated to latest version except LiveChat and Embed Plus for YouTube.
Also when I hover over the class name for “wpcf7-spinner”, there is nothing in the Source, so it seems like nothing is there to call out for. Can you please help?
Hi Takayuki! Here’s the webpage:
https://pacauto.com/new-account-register/
Password: testing123
I was able to stylize the prompt messages at least and add a text next to the submit button to only click once, but yea couldn’t figure out how to get the processing arrows icon to appear again. Thank you very much!
- This reply was modified 3 years, 2 months ago by Maggie.
Forum: Plugins
In reply to: [Contact Form 7] spinner gone?I see that your message hasn’t been answered yet either, I had the same question and my spinner is gone too. It disappeared after updating the form to the latest patch. ?? Where is the help?
Forum: Plugins
In reply to: [Conditional Fields for Contact Form 7] Form not submitting / arrows loopingThis form works now!! Yes you are right, I had to update the original Contact Form 7 plugin, and was able to re-activate the conditional ruling plugin. ??
Thanks Jules!
Forum: Plugins
In reply to: [Conditional Fields for Contact Form 7] Form Won’t SendSorry will do! ??
Forum: Plugins
In reply to: [Conditional Fields for Contact Form 7] Form Won’t SendHey there Jules, I’m running into the same issue. The conditional fields plugin (just installed yesterday) all work fine, but the arrows are stuck looping when I hit Submit.
Here’s mine:
https://conditional-fields-cf7.bdwm.be/form-tester/?hash=b03e87478d96641e2d1b9f57a69885eb
Please help, thank you!