Hi all.

I have an issue with Raven on a statamic website I've built - it's occuring both locally and on the server. Both Statamic and Raven are up-to-date (1.9.1 and 2.0.2?).

Essentially, when any form is submitted (there are three different forms on this site, with three different formsets that follow the same pattern) the submission gets created and can be viewed in _forms as well as the CP but the success message on the actual website isn't shown.

An example on the live site is here: http://intelliact.ch/en/contact-us

So if you submit a test form here, you'll see that the form itself submits (and the submission appears in the CP) but it doesn't show a success message and the values for the form labels disappear. The labels are fields in the CP as being a multi-lingual site they needed the ability to edit those labels per language.

I tried replacing all of the code that we had for the form with the default provided with the Raven add-on and even when I replaced the formset and the code with the default example we still had the same issue.

This is my formset code:

###########################################################################################
#
#  Contact - RAVEN FORMSET
#
#  Formsets can override any default settings (raven.yaml) EXCEPT master_killswitch
#
###########################################################################################

# Location (from root) to save form submissions
submission_save_path: _forms/contact/

# Fields allowed to be submitted in the form, automatically
# purging anything and everything else
allowed:
  - name
  - email
  - phone
  - message

# You are not required to require fields, but once you do, any missing
# from the POST will squash this submission and send a list of
# missing fields to your {{ raven:errors }} tagpair
required:
  - email
  - message

# What format the submitted form messages will be saved as.
# Default is yaml, can be changed to md for MarkDown files
submission_save_extension: yaml

## Format for the filename saved for each submitted message
filename_format: "{{name}}--{{day}}--{{month}}--{{year}}"

# Apply validation rules to specific fields. Refer to documentation
# for a full list of available rules and their format
validate:
  name: alpha
  email: email
  phone: digit

# Error messages can be mapped to your fields and passed to the
# template upon failure. They will be available here:
#
# {{ raven:error }}
#     {{ invalid }}
#         {{ field }} : {{ message }}
#     {{ /invalid }}
# {{ /raven:error }}
#
messages:
  name: "Your name can only consist of letters."
  email: "We need a valid email address, please."
  phone: "Your phone number can only contain digits."
  message: "We need a message to be able to contact you properly."

# Configure notification email
email:
  to: "[email protected]"
  from: "{{ email }}"
  subject: New Message from Intelliact AG Homepage
  automagic: true
  # html_template: html_email
  # text_template: text_email

And this is my HTML for the form:

{{ if {raven:success} }}
    <div class="alert success">
        Congrats! Message sent
    </div>
{{ else }}

    {{ raven:errors }}
        <div class="alert error">
            {{ contact_error_message }}
            <ul class="errors-list medium">
            {{ missing }}
                <li><strong>{{ field|deslugify|title }}</strong> is missing.</li>
            {{ /missing }}

            {{ invalid }}
                <li><strong>{{ field|deslugify|title }}</strong>: {{ message }}</li>
            {{ /invalid }}
            </ul>
        </div>
    {{ /raven:errors }}

    {{ raven:form formset="contact" attr="class:form-contact-us" }}
        <div class="form-wrapper">
            <label for="name" class="main-label">{{ contact_form_label_name }}</label>
            <span class="sub-label">{{ contact_form_sublabel_name }}</span>
            <input id="name" name="name" type="text" value="{{ value:name }}" />
        </div>

        <div class="form-wrapper">
            <label for="email" class="main-label">{{ contact_form_label_email }}</label>
            <span class="sub-label">{{ contact_form_sublabel_email }}</span>
            <input id="email" name="email" type="text" value="{{ value:email }}" required />
        </div>

        <div class="form-wrapper">
            <label for="phone" class="main-label">{{ contact_form_label_phone }}</label>
            <span class="sub-label">{{ contact_form_sublabel_phone }}</span>
            <input id="phone" name="phone" type="tel" value="{{ value:phone }}" />
        </div>

        <div class="form-wrapper">
            <label for="message" class="main-label">{{ contact_form_label_message }}</label>
            <span class="sub-label">{{ contact_form_sublabel_message }}</span>
            <textarea id="message" name="message" required>{{ value:message }}</textarea>
        </div>

        <input type="submit" id="submit-form" class="button" value="Send my message" />
    {{ /raven:form }}

{{ endif }}

I've looked at all this code so much and can't spot any errors - but please let me know if you see anything glaringly obvious I've missed. Otherwise I'd love ANY help I can get with this as I'm totally stumped. Thanks :)

Answered by Jack McDade! Go to answer.