Form messages not working.

Hello,

I have a contact form that submits fine when correct. However, success and error messages do not show. When there is an error, I only get. "400 bad request" error but nothing more. I have tried coding the form in several different ways but the documentation is inconsistent through the various examples. What am I doing wrong?

{{ form:create in="contact" }}

                    {{ if errors }}
                        <p>Oops, here's what went wrong:</p>
                        <div>
                            <ul>
                                <li>
                                    {{ errors }}
                                        <li>{{ value }}</li>
                                    {{ /errors }}
                                </li>
                            </ul>
                        </div>
                    {{ /if }}

                    {{ if success }}
                        <div>
                            Form was submitted successfully.
                        </div>
                    {{ /if }}

                    <div class="form-group_wrap">
                        <div class="form-group name">
                            <input type="text" name="name" value="{{ old:name }}" class="form-control" placeholder="Your Name" />
                        </div>

                        <div class="form-group email">
                            <input type="text" name="email" value="{{ old:email }}" class="form-control" placeholder="Email" />
                        </div>
                    </div>

                    <div class="form-group_wrap">
                        <div class="form-group title">
                            <input type="text" name="title" value="{{ old:title }}" class="form-control" placeholder="Title" />
                        </div>

                        <div class="form-group select">
                            <select name="questions" value="{{ old:questions }}" id="questions">
                                <option value="one">Question One</option>
                                <option value="two">Question Two</option>
                                <option value="three">Question Three</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group message">
                        <textarea name="message" class="form-control" placeholder="Your Message"></textarea>
                    </div>

                    <button type="submit" class="btn btn-primary action-1">Send</button>

                {{ /form:create }}
>>>>>>> Unanswered <<<<<<<
0 Replies
1 Follower