Forum
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
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’, );
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:form>
Can you post your Diagnostics Report?
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