Forum

Thread tagged as: Question, Problem, Forms

Form App not working

Hi I have installed the form app and followed the tutorial. After I have filled out the form and submitted the form I get the Thank you message, but when I go back into my Admin area to the form app I get the following: No forms have been submitted yet. Submit a new form to have it show up here.

This is what I have for my contact form template:

<h2><perch:content id="heading" type="text" label="Heading" required="true" /></h2> <perch:form id="form-contact" method="post" app="perch_forms" role="form">

<div class="input">

    <perch:input  id="name" type="text"  placeholder="Name..." required="true" />

</div>
<div class="input">

    <perch:input id="email" type="email" placeholder="Email (you@company.com)" required="true" />


</div>
<div class="input">

    <perch:input  type="textarea" id="message" cols="30" rows="4" placeholder="Please enter your message..." required="true">

</div>
<perch:input type="submit" id="submit" value="Send" />

<perch:success>
    <div class="alert success">
    <perch:content id="success" type="textarea" label="Thank you message" textile="true" editor="ckeditor " />
    </div>
</perch:success>

</perch:form>

I've checked and re-checked but must be missing something. I have used the forms app in the past successfully !

Kind Regards

Suzanne Szenher

Suzanne Szenher 0 points

  • 7 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Have you added the forms app to your apps.php - before submitting the form?

Hi...Yes...this is what I have : <?php $apps_list = array( 'content', 'categories', ‘perch_forms’, );

Drew McLellan

Drew McLellan 2638 points
Perch Support

You don't seem to have any error message tags in your form. If the validation is failing, you'll not see a message.

Hi..this morning I have tried the contact form.html template from the swift demo as is. Im still getting the same message in the admin "No forms have been submitted yet. Submit a new form to have it show up here." I have gone to the page, filled in the form, its refreshed with the thank you message, I then go to my admin and click on Forms but I'm still getting the error message.

This is the template I am using:

<h2><perch:content id="heading" type="text" label="Heading" required="true" /></h2>

<perch:form id="form-contact" method="post" app="perch_forms" role="form"> <div class="input<perch:error for="name" type="required"> error</perch:error>"> <perch:label for="name">Your name:</perch:label> <perch:input id="name" type="text" required="true" label="Name" /> <perch:error for="name" type="required"><p class="about-error">Please enter your name</p></perch:error> </div> <div class="input<perch:error for="email" type="required"> error</perch:error><perch:error for="email" type="format"> error</perch:error>"> <perch:label for="email">Your email:</perch:label> <perch:input id="email" type="email" required="true" label="Email" /> <perch:error for="email" type="required"><p class="about-error">Please enter an email address</p></perch:error> <perch:error for="email" type="format"><p class="about-error">Please enter a valid email address</p></perch:error> </div> <div class="input<perch:error for="message" type="required"> error</perch:error>"> <perch:label for="message">Your message:</perch:label> <perch:input type="textarea" id="message" required="true" label="Message"> <perch:error for="message" type="required"><p class="about-error">Please enter a message</p></perch:error> </div> <perch:input type="submit" id="submit" value="Send" />

<perch:success>
    <div class="alert success">
    <perch:content id="success" type="textarea" label="Thank you message" textile="true" editor="ckeditor " />
    </div>
</perch:success>

</perch:form>

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Can you post your Diagnostics Report?

Diagnostics report
PERCH INFORMATION

Perch: 2.6.6
Production mode: Production (100)
Installed apps: content (2.6.6), assets (2.6.6), categories (2.6.6), perch_forms (1.7)
DB driver: PDO
DB tables: perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_forms, perch2_forms_responses, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
Users: 1
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
        ‘perch_forms’,
    );
Editor plug-ins: ckeditor, markitup
H1: 7eadd96a7e934850b844f939209cecf9
L1: 0e55068973ab5a4583c0468b86f5fed1
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.6.6: done
latest_version: 2.5.3
on_sale_version: 2.6.6
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: cl52-stsdesign
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: cl52-stsdesign
PERCH_DB_PREFIX: perch2_
PERCH_TZ: Europe/London
PERCH_EMAIL_FROM: sueszenher@aol.com
PERCH_EMAIL_FROM_NAME: Suzanne Szenher
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/sites/sts-webdesign.co.uk/public_html/perch
PERCH_CORE: /home/sites/sts-webdesign.co.uk/public_html/perch/core
PERCH_RESFILEPATH: /home/sites/sts-webdesign.co.uk/public_html/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/sites/sts-webdesign.co.uk/public_html/perch/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
HOSTING SETTINGS

PHP: 5.3.28
Zend: 2.3.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.8-dev - 20102224 - $Id: 731e5b87ba42146a687c29995d2dfd8b4e40b325 $
MySQL server: 5.5.33
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bz2, calendar, ctype, hash, filter, ftp, gettext, gmp, SPL, iconv, session, standard, mysqlnd, pcntl, mysqli, PDO, pdo_mysql, pdo_sqlite, Phar, Reflection, mysql, shmop, SimpleXML, sockets, exif, tokenizer, xml, cgi-fcgi, bcmath, curl, dom, fileinfo, gd, imap, intl, json, ldap, mbstring, mcrypt, mssql, OAuth, odbc, pdo_dblib, PDO_ODBC, pdo_pgsql, pgsql, posix, soap, SQLite, sysvmsg, sysvsem, sysvshm, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, ionCube Loader, Zend Guard Loader
GD: Yes
ImageMagick: No
PHP max upload size: 64M
PHP max form post size: 64M
PHP memory limit: 128M
Total max uploadable file size: 64M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
PATH: /usr/local/bin:/usr/bin:/bin
UNIQUE_ID: VDGJUX8AAAEAAFypDQsAAAAW
SCRIPT_URL: /perch/core/settings/diagnostics/
SCRIPT_URI: https://sts-webdesign.co.uk/perch/core/settings/diagnostics/
HTTP_HOST: sts-webdesign.co.uk
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36
HTTP_REFERER: https://sts-webdesign.co.uk/perch/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip,deflate,sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_COOKIE: PHPSESSID=4stbmvc4qua5b1m6sj0q8jo663; cmsa=1
HTTP_CONNECTION: close
SERVER_SIGNATURE: <address>Apache/2.4.9 (Unix) Server at sts-webdesign.co.uk Port 80</address>
SERVER_SOFTWARE: Apache/2.4.9 (Unix)
SERVER_NAME: sts-webdesign.co.uk
SERVER_ADDR: 10.0.187.68
SERVER_PORT: 80
REMOTE_ADDR: 151.249.68.166
DOCUMENT_ROOT: /home/sites/sts-webdesign.co.uk/public_html
REQUEST_SCHEME: http
CONTEXT_DOCUMENT_ROOT: /home/sites/sts-webdesign.co.uk/public_html
SERVER_ADMIN: root@localhost
SCRIPT_FILENAME: /home/sites/sts-webdesign.co.uk/public_html/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 46645
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME: 1412532561
Rachel Andrew

Rachel Andrew 394 points
Perch Support

You have curly quotes around perch_forms in your apps.php

These need to be straight single quotes.

Oh my, thank you so much. That will be my middle aged eye sight! lol