No forms are submited
Hello, I have set up the perch forms app and I have added a form in one of my pages. When submiting the form the thank you message is being displayed, but on the admin panel under forms-->listing forms I have "No forms have been submitted yet. Submit a new form to have it show up here." Any ideas? am I missing something here?
<article class="fullWidthContainer"/>
<h3 class="depth redheader" style="text-align:center;">
<perch:content id="page-header2" type="text" label="Contact us header" />
</h3>
<perch:form id="form-contact" method="post" app="perch_forms" role="form">
<article class="fullWidthContainer" />
<article class="halfWidthContainer" style="width:40%; margin-left:3%; ">
<div>
<div class="input">
<perch:label for="name" class="formlabels">Your name:</perch:label>
<perch:input id="name" type="text" required="true" label="Email">
</div>
<div class="input">
<perch:label for="name" class="formlabels">Your Phone:</perch:label>
<perch:input id="phone" type="text" required="true" label="Phone number">
</div>
<div class="input">
<perch:label for="email" class="formlabels">Your email:</perch:label>
<perch:input id="email" type="email" required="true" label="Email">
</div>
</div>
</article>
<article class="halfWidthContainer" style="width:40%; float:left;">
<div>
<div class="input">
<perch:label for="message" class="formlabels">Your message:</perch:label><br />
<perch:input id="message" type="textarea" required="true" label="Message" style="">
</div>
</div>
</article>
</article>
<article class="fullWidthContainer relative"/>
<div style="margin-left:3%;" class="formsubmit">
<perch:input type="submit" id="submit" value="Send"></perch:input>
</div>
</article>
<perch:success>
<div class="alert success" style="margin-left:3%;">
<perch:content id="success-paragraph-left" type="textarea" label="Thank you message" html="true" textile="true" editor="markitup" />
</div>
</perch:success>
</perch:form>
</article>
Have you added the Forms App to your config file? That's the mistake I often make which leads the same issues as above.
you mean config apps.php?
<?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_mailchimp', 'perch_forms' );
Yeah, but I think you might need a comma after that last app.
perch:input is a self-closing tag:.
I believe you need to properly close your <input /> tags.
Example from your code:
Add the / backslash at the end:
I use that example because you also want to have your <perch:label for="name"> read for="phone", but that is separate point.
At:
you would end with a /> and not the full </perch:input>.
Nope this did not work:
Any other suggestions ?
If you add debug to that page and submit the form, what does it output?
You also have some very strange markup there, the article element should not be self-closing.
I have perch runway What do you mean " very strange markup there, the article element should not be self-closing."?? I close <article with </article>, am I missing something??
I have add the <?php PerchUtil::output_debug(); ?> at the bottom of the page and this is what I get actully i am getting the same before submit the form and after:
SELECT * FROM perch2_pages WHERE pagePath='/contact.php' LIMIT 1 Using template: /templates/pages/attributes/default.html Using sub-template: /templates/pages/attributes/seo.html SELECT regionKey, regionHTML FROM perch2_content_regions WHERE regionPage='/contact.php' OR regionPage='*' ORDER BY regionPage DESC
I think Rachel means this:
Can you post your diagnostics?
Oh ok I will modify my articles I am posting my diagnostics below
Perch information
Hosting settings
Can you update to the current version of Runway? All this back and forth and the problem might already have been addressed.
Sorry Drew I didnt see any relevant updates in the latest version thats why I did not do it before. I have completed the update now and I still cannot see my form submission under the admin panel. I am posting my new Diagnostics report
Hosting settings
I am also posting the debug message for this page. The message is the same before and after form submission.
SELECT * FROM perch2_pages WHERE pagePath='/contact.php' LIMIT 1 Using template: /templates/pages/attributes/default.html Using sub-template: /templates/pages/attributes/seo.html SELECT regionKey, regionHTML FROM perch2_content_regions WHERE regionPage='/contact.php' OR regionPage='*' ORDER BY regionPage DESC
I receive thank you message but on the admin panel --> Apps --> Forms I get: "No forms have been submitted yet. Submit a new form to have it show up here."
Do you have any rewrite rules in place that could be affecting this page?
Hi Drew,
That might be the issue, currently I dont have anything enabled inside my htaccess. Do I have to enable the below code inside my htaccess file?
Perch Runway
RewriteEngine On RewriteCond %{REQUEST_URI} !^/perch RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* /perch/core/runway/start.php [L]
Yes - please follow the setup instructions https://docs.grabaperch.com/runway/installing/
Drew I modified my htaccess I have enabled
Perch Runway
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/perch RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !^/$ RewriteRule .* /perch/core/runway/start.php [L]
But I still get same result when submiting my form. I only get my thank you message and no forms to the admin panel:
Debug message: SELECT * FROM perch2_pages WHERE pagePath='/contact.php' LIMIT 1 Using template: /templates/pages/attributes/default.html Using sub-template: /templates/pages/attributes/seo.html SELECT regionKey, regionHTML FROM perch2_content_regions WHERE regionPage='/contact.php' OR regionPage='*' ORDER BY regionPage DESC
You need to set up
contact.php
as a master page intemplates/pages
and then create a new page based on it.For this website i dont have a contact.php as masterpage but I have it inside my root folder. This works the same right?
<?php include('perch/runtime.php'); include('perch/templates/layouts/global/header.php'); ?>
<div class="container"> <?php tbr_perch_content('Contact - Top Page Header'); ?> <!-- Images Text Section --> <?php tbr_perch_content('Contact - Empty Section'); ?> <?php tbr_perch_content('Contact - Page');?> ///This is the region where I am calling my contact.html template <?php perch_layout('global/scroll-top'); ?> <?php perch_layout('global/footer-info'); ?> </div> <?php perch_layout('global/footer-bar'); ?>
It doesn't work the same in 2.8.15, but should in 2.8.16.