Forum Replies Created
- AuthorPosts
MediaServices
ParticipantThanks, I’ll check with our server tech to see if we were running out of disk space on the server.
MediaServices
ParticipantAlly,
I checked Step 1 and “When to load scripts/styles” is set to “Always”. Before Step 2 I took a screenshot of Step 3’s output and https://upstatephysicianssc.com/wp-content/plugins/quform/cache/quform.js?ver=1662557404 was giving a 404 error. So then I went to Step 2 and turned off “Combine CSS” option and saved the settings, and the honeypots are now hidden/non-visible as they should be.
When I did troubleshooting before I posted here in the forums, on our other websites I had set “Enable honeypot CAPTCHA” to OFF, and then set it to ON and the honeypot would again be hidden/non-visible as it should be. When I got to your Step 2 and set “Combine CSS” to OFF and honeypot was again hidden/non-visible as it should be, and then I changed it back to ON and the honeypot is still hidden/non-visible. So the cause isn’t a permanent error from having “Combine CSS” set to ON.
So, for some reason either setting “Enable honeypot CAPTCHA” to OFF then ON, or setting “Combine CSS” to OFF then ON result in the honeypot being hidden again, and I am trying to figure out why it happened. Naturally we want to prevent that from happening again. Do you have any idea why the honeypots became visible based on the information provided here?
August 19, 2022 at 6:24 pm in reply to: Quform V2 WordPress: Minimum Responses on Multi-Page Form #34581MediaServices
ParticipantThat worked great! I’m submitting another set of questions that might negate the need for the multi-page form. Would this also work if we switch the form back to a single page form?
MediaServices
ParticipantI should have mentioned we are using Quform Version 2.12.1. I also checked the form Export and we have the option to export 267 fields.
I just checked again and 268435456 bytes of memory is 256MB, why is so much memory being used?
- This reply was modified 4 years, 5 months ago by
MediaServices.
MediaServices
ParticipantYes it worked! Thank you!
MediaServices
ParticipantThank you. I cannot get this code to work.
UPDATED BELOW TO REFLECT functions.php correction. Last year’s minimum vote counting was not working and I got that fixed by going back to an earlier version of my functions.php and re-entering the code. I still cannot get the code above to work fully. Details below.
- We are running Quform 2.0 for WordPress on this form.
- Our form is #15. [quform id="15" name="description goes here"]
- In the first line of your code, I’ve left ‘quform_post_validate_1 unchanged’
- In the second line of code after setValue I’ve changed ‘quform_1_729’ to ‘quform_1_340’, and ‘quform_15_340’.
- Our hidden field’s unique ID as seen here https://support.themecatcher.net/quform-wordpress-v2/guides/basic/finding-the-element-unique-id is 15_340. All occurrences of 729 have been changed to 340
- Our checkbox field’s unique ID as seen here https://support.themecatcher.net/quform-wordpress-v2/guides/basic/finding-the-element-unique-id is 15_341. 729 has been changed to 341
- For the autoreply email I’ve edited the link from
<a href="https://www.example.com/confirm-vote?key={element|id:729|Hidden}">CLICK HERE TO CONFIRM YOUR VOTE</a>
to match our form<a href="http://www.myexamplesite.com/my-confirm-form/?key={element|id:729|Hidden}">CLICK HERE TO CONFIRM YOUR VOTE</a>
</il>UIPDATED
I will list my code below, but first here’s what happens. I fill out the form and click the SEND button and get my Confirmation message that voting has been successful, please check our email. I receive an email with the link, but the ?key= is always blank, so the URL to click is http://www.myexamplesite.com/my-confirm-form/?key= and when I click it and land on my confirmation I am now getting the error message ‘Vote failed, key not found.’.Of course no validation checkbox fields have Yes as their value, all of them are empty even after I click on the link sent by email.
SAMPLE 1: quform_1_340 for setValue
add_filter('quform_post_validate_1', function (array $result, Quform_Form $form) { $form->setValue('quform_1_340', sha1(uniqid())); return $result; }, 10, 2); add_shortcode('confirm_vote', function () { if (!isset($_GET['key']) || !is_string($_GET['key'])) { return 'Vote failed, key missing.'; } global $wpdb; $repository = quform('repository'); $query = "SELECT entry_id FROM " . $repository->getEntryDataTableName() . " WHERE element_id = 340 AND value = %s"; $result = $wpdb->get_var($wpdb->prepare($query, $_GET['key'])); if ($result == null) { return 'Vote failed, key not found.'; } $repository->saveEntryData($result, array(340 => '', 341 => serialize(array('Yes')))); return 'Thank you, your vote has been confirmed.'; });
SAMPLE 2: quform_15_340 for setValue
add_filter('quform_post_validate_1', function (array $result, Quform_Form $form) { $form->setValue('quform_15_340', sha1(uniqid())); return $result; }, 10, 2); add_shortcode('confirm_vote', function () { if (!isset($_GET['key']) || !is_string($_GET['key'])) { return 'Vote failed, key missing.'; } global $wpdb; $repository = quform('repository'); $query = "SELECT entry_id FROM " . $repository->getEntryDataTableName() . " WHERE element_id = 340 AND value = %s"; $result = $wpdb->get_var($wpdb->prepare($query, $_GET['key'])); if ($result == null) { return 'Vote failed, key not found.'; } $repository->saveEntryData($result, array(340 => '', 341 => serialize(array('Yes')))); return 'Thank you, your vote has been confirmed.'; });
I have also tried changing line 1 ‘quform_post_validate_1’ to ‘quform_post_validate_15’.
I look forward to your reply.
- This reply was modified 4 years, 6 months ago by
MediaServices. Reason: Added another detail
- This reply was modified 4 years, 6 months ago by
MediaServices. Reason: Added CODE tags around link code
- This reply was modified 4 years, 6 months ago by
MediaServices. Reason: Fixed typo
- This reply was modified 4 years, 6 months ago by
MediaServices. Reason: UPDATE functions.php Correction
- This reply was modified 4 years, 6 months ago by
MediaServices.
MediaServices
ParticipantResolved with my hosting company. thank you.
MediaServices
ParticipantAh yes, thank you. I will contact my host again and show them.
MediaServices
ParticipantSure, I PMed you the PHPINFO and I’ll check and see if i can get Apache restarted.
MediaServices
ParticipantThank you. I checked with my host and they have enabled this extension, and. I am still getting these errors. I can send you a link the PHPMYINFO if that’s helpful. Please advise.
MediaServices
ParticipantThank you, that was very helpful. I’ve got ALL of codes associated with my domains now.
MediaServices
ParticipantThanks, that worked perfectly.
MediaServices
ParticipantWe also have some other forms that we want to do this with, and hopefully I can just edit your code for those.
MediaServices
ParticipantResolved, thank you!
September 28, 2017 at 4:05 pm in reply to: Multi Page Form with Additional Page Data Appeneded #22379MediaServices
ParticipantVenom would like example code but I’ve had more feature requests and re-assigned the project internally to a designer who has recommended another plugin that handles form abandonment.
Best wishes and thanks for your time.
- This reply was modified 4 years, 5 months ago by
- AuthorPosts