Home › Forums › Quform WordPress › Create a page with form values help
- This topic has 1 reply, 2 voices, and was last updated 6 years, 10 months ago by
Ally.
- AuthorPosts
- November 6, 2018 at 9:29 am #27625
aaron1988
ParticipantHi,
When i created the plugin to create a page to show the submitted form data i try and activate the plugin and get this error:
Submitted form data
Submitted field 1:
Fatal error: Uncaught Error: Call to a member function getValueHtml() on null in /home/sites/5b/d/d7eb04b1cf/public_html/wp-content/plugins/quform-custom-code/form-page.php:12 Stack trace: #0 /home/sites/5b/d/d7eb04b1cf/public_html/wp-admin/includes/plugin.php(1897): include() #1 /home/sites/5b/d/d7eb04b1cf/public_html/wp-admin/plugins.php(178): plugin_sandbox_scrape(‘quform-custom-c…’) #2 {main} thrown in /home/sites/5b/d/d7eb04b1cf/public_html/wp-content/plugins/quform-custom-code/form-page.php on line 12and the code in this plugin file is:
<?php if (!defined('ABSPATH')) exit; // Prevent direct script access /* * Plugin Name: Form Page * Description: Custom code for Quform. * Version: 1.0 */ // Paste in your custom code below ?> <h2>Submitted form data</h2> <p>Submitted field 1: <?php echo $form->getValueHtml('quform_4_5'); ?></p> <p>Submitted field 2: <?php echo $form->getValueHtml('quform_4_10'); ?></p> <p>Submitted field 3: <?php echo $form->getValueHtml('quform_4_8'); ?></p>
Thanks
Aaron- This topic was modified 6 years, 10 months ago by
aaron1988. Reason: adding backsticks
November 9, 2018 at 11:37 am #27675Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- This topic was modified 6 years, 10 months ago by
- AuthorPosts
- You must be logged in to reply to this topic.