navasahmed
Forum Replies Created
-
Hello @glenwpcoder,
Any Updates on my query? please check it we need to solve the issue ASAP.
Thanks.
Forum: Plugins
In reply to: [Contact Form 7] Custom validation not working on latest versionHello @glenwpcoder,
Thanks for your reply.
I have tested you shared code. unfortunately, it’s not working. the error message not showing(screenshot: https://snipboard.io/JyRf9K.jpg ). here am attaching the field that I’m using on my contact form 7. please try it from your end. we need to solve the issue ASAP.
[mfile download filetypes:xlsx|xls|pdf|doc|docx class:file-upload limit:5000000]
validation code:
add_filter( 'wpcf7_validate_mfile', 'cf7_custom_file_validation', 10, 2 ); add_filter( 'wpcf7_validate_mfile*', 'cf7_custom_file_validation', 10, 2 ); function cf7_custom_file_validation ($result, $tag) { if ($tag->name === 'download') { $files = $_POST[ $tag->name ][0]; // this could be an array $type = wp_check_filetype( $files ); $contentType = $type['type']; if ($contentType !== 'application/docx' && $contentType !== 'application/pdf' && $contentType !== 'application/doc'&& $contentType !== 'application/xlsx'&& $contentType !== 'application/xls') { $result->invalidate($tag, 'This file type is not supported..........'); } } return $result; }
Thanks.
- This reply was modified 2 years, 7 months ago by navasahmed.
- This reply was modified 2 years, 7 months ago by navasahmed.
Forum: Plugins
In reply to: [Contact Form 7] MIME types file validationHello @takayukister
Is that worked with Drag and Drop Multiple File Upload – Contact Form 7 plugin?
Thanks
Forum: Plugins
In reply to: [Contact Form 7] MIME types file validationI have set that in my local server, so I can’t share that with you. you can check the above I was given code. please check it and confirm if is there any issue with that code. also how i can solve the issue?
Thanks
Forum: Plugins
In reply to: [Contact Form 7] Custom validation not working on latest versionHello @takayukister,
Here am attaching the screenshot of the forms. this is a screenshot for version 5.6.1 https://snipboard.io/cSusk3.jpg and this is for version 5.5.6.1 https://snipboard.io/obIpS9.jpg. kindly please check the custom validation message issue for empty fields.
Thanks.
Forum: Plugins
In reply to: [Contact Form 7] Custom validation not working on latest versionhello @takayukister,
The empty field validation message not change to a custom validation message.
Thanks
Forum: Plugins
In reply to: [Contact Form 7] Custom validation not working on latest versionHello @takayukister,
I have set up these codes on my local, so how i can share that. can you please try this code on your end?
Thanks.
Forum: Plugins
In reply to: [Responsive Menu - Create Mobile-Friendly Menu] Add active class on menuForum: Plugins
In reply to: [Responsive Menu - Create Mobile-Friendly Menu] Add active class on menuHello @sumitsanadhya
Thank you for the snippet. It works for the menu link. Adding an extra class to “li” or “div” is what I need to do. The new class does not need to be added to anchor tags. Please help me to add the new class to “li” or “div”.
Thank you in advance
Forum: Plugins
In reply to: [Responsive Menu - Create Mobile-Friendly Menu] Add active class on menuThanks for the quick reply :).
Could you please make it fast. we need to solve the issue ASAP. hopefully we will get the solution as soon as possible
Thanks.