Forum Replies Created
- AuthorPosts
jerkski
ParticipantHi Ally, we had emailed you the code for review. Thank you!
jerkski
ParticipantHi Ally, I did check out this function, but something is different. When used, it wants to load all entries (1000’s of entries) under form 2. The previous function used to only load the most recently submitted order from the form.
Am I using the correct function for this? This is what I am trying to achieve, but in Quform v2: https://support.themecatcher.net/forums/topic/use-code-from-html-email-in-a-confirmation-page
What I had done in the past was use
$form = iphorm_get_form(2)
in a php/html template that loaded immediately after the form was submitted. That template usediphorm_get_form(2)
to display the previously submitted form entry’s labels and values.For example, here is what I tried:
$repository = quform('repository'); $factory = quform('formFactory'); $config = $repository->getConfig(2); if (is_array($config)) { $form = $factory->create($config); print_r($form); }
jerkski
ParticipantThe function used to exist in iphorm-form-builder/includes/common.php, but I do not see a comparable function in Quform v2. Any hints?
jerkski
Participantjerkski
ParticipantI think I am going to try to limit any excessive scripts from loading on my form page first. I just noticed I have some js and ajax calls that don’t need to be there. I’ll reply back as soon as I know its looking better. Thanks Ally!
- This reply was modified 3 years, 9 months ago by
jerkski.
jerkski
ParticipantThank you!! That works even better!
jerkski
ParticipantThank you for that!
Interestingly enough, i found another possible method. Setting the input type of the text field to “search”. Do you think that could work with Quform?
https://stackoverflow.com/a/6258628
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/search
jerkski
ParticipantThank you for finding this! I will report back once we change and test.
jerkski
ParticipantThis issue appears to exist in v2 also, although it isn’t the same error: Clicking submit on a test form in v2 says “the response from the server was invalid or malformed”
Is this being looked at? I noticed the plugin was removed from Codecanyon. I was going to see if any comments were left for similar issues and saw it was removed.
jerkski
ParticipantJust doing some more research, this looks like it is related to the submit button when ajax is enabled on the form. If I disable Ajax, it works, but then I lose a lot of functionality in my form. Do you know what would be the cause of this related to Chrome 83? Again, there is nothing in the chrome console. It just prevents you from clicking submit with a browser alert.
jerkski
ParticipantProblem solved… you may close this again. Found a bit of code hidden in my theme’s custom functions: Commented it out and all good now.
// function my_quform_scripts($enqueue)
// {
// if (!in_array(get_queried_object_id(), array(141, 24, 215)))
// {
// $enqueue = false;
// }
// return $enqueue;
// }
// add_filter(‘iphorm_enqueue_scripts’, ‘my_quform_scripts’);
// add_filter(‘iphorm_enqueue_styles’, ‘my_quform_scripts’);jerkski
ParticipantOn the good page where Quform loads, this code below exists. On new pages, where I insert Quform and it doesn’t work, it does not exist:
<script type='text/javascript' src='https://domain.com/wp-content/plugins/iphorm-form-builder/js/jquery.fileupload.min.js?ver=9.18.0'></script> <script type='text/javascript'> /* <![CDATA[ */ var iphormL10n = {"error_submitting_form":"An error occurred submitting the form","upload_too_many":"You have attempted to queue too many files","upload_file_type_not_allowed":"This file type is not allowed","upload_file_too_big":"This file exceeds the maximum upload size","invalid_response":"The response from the server was invalid or malformed","ajax_error":"Ajax error","plugin_url":"https:\/\/domain.com\/wp-content\/plugins\/iphorm-form-builder","ajax_url":"https:\/\/domain.com\/wp-admin\/admin-ajax.php","preview_no_submit":"The form cannot be submitted in the preview"}; /* ]]> */ </script> <script type='text/javascript' src='https://domain.com/wp-content/plugins/iphorm-form-builder/js/jquery.iphorm.js?ver=1.10.0'></script> <script type='text/javascript' src='https://domain.com/wp-content/plugins/iphorm-form-builder/js/jquery.form.min.js?ver=3.5.1'></script> <script type='text/javascript' src='https://domain.com/wp-content/plugins/iphorm-form-builder/js/jquery.smooth-scroll.min.js?ver=1.7.2'></script> <script type='text/javascript' src='https://domain.com/wp-content/plugins/iphorm-form-builder/js/qtip2/jquery.qtip.min.js?ver=2.2.1'></script> <script type='text/javascript' src='https://domain.com/wp-content/plugins/iphorm-form-builder/js/uniform/jquery.uniform.min.js?ver=2.1.2'></script> <script type='text/javascript' src='https://domain.com/wp-content/plugins/iphorm-form-builder/js/jquery.infieldlabel.min.js?ver=0.1'></script> <script type='text/javascript' src='https://domain.com/wp-includes/js/jquery/ui/core.min.js?ver=1.11.4'></script> <script type='text/javascript' src='https://domain.com/wp-includes/js/jquery/ui/datepicker.min.js?ver=1.11.4'></script> <script type='text/javascript'> jQuery(document).ready(function(jQuery){jQuery.datepicker.setDefaults({"closeText":"Close","currentText":"Today","monthNames":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthNamesShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"nextText":"Next","prevText":"Previous","dayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dayNamesShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dayNamesMin":["S","M","T","W","T","F","S"],"dateFormat":"MM d, yy","firstDay":1,"isRTL":false});}); </script> <script type='text/javascript' src='https://domain.com/wp-content/plugins/iphorm-form-builder/themes/light/rounded.js?ver=1.10.0'></script>
jerkski
ParticipantI recreated the form from scratch and It now works.
jerkski
ParticipantI spoke to soon…now I am unable to submit and have the form save. It does not save to entries table or a custom database. Is there a way to troubleshoot this?
jerkski
ParticipantI have done a lot of testing and found that if I insert the new form on an old page, it works…a new page, and it does not work. So there must be an issue with another plugin and wordpress causing a backward compatibility issue.
This can be closed, but in case someone else stumbles across this and is still on an older version of Quform and WordPress 4.9.8, there may be compatibility issues on the horizon given the changes to wordpress editor and other plugins. It may be worth the update to Quform 2 and wordpress 5 to avoid any other conflicts.
- This reply was modified 3 years, 9 months ago by
- AuthorPosts