We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Raven not working

Erin Dalzell April 6, 2015 by Erin Dalzell

When I hit the submit, the page refreshes and nothing else happens. Nothing saved, no success message, no errors. Using 1.10.4 and latest Raven. hosted on Dreamhost. Everything else working fine.

Help please.

Template:

<div class="container-full">
    <div class="row">
        {{ if raven:has_errors }}
            {{ raven:errors }}
        {{ /if}}
        {{ if raven:success }}
            Success!
        {{ /if}}
        <div class="col-lg-12 text-center v-center">
            {{ raven:form formset="zapier" }}
                <input class="form-control input-lg" title="ID" placeholder="ID?" type="number" name="foo"> 
                <input class="form-control input-lg" title="Name" placeholder="Name?" type="text" name="bar"> 
                <input type="submit" class="btn btn-primary btn-lg" value="Submit">
            {{ /raven:form }}
        </div>
    </div> <!-- /row -->

</div> <!-- /container full -->

Formset:

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

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

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

# 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:
  - id
  - name

submission_save_extension: yaml


# 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 }}
#

Raven config:

###########################################################################################
#
#  RAVEN CONFIG AND DEFAULT SETTINGS
#
#  All of these settings (except the master killswitch) can be overriden in a formset
#
###########################################################################################

# Form submissions can be saved to YAML files
submission_save_to_file: true

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

send_notification_email: true

# Choose your mail service
# available services:
#    - mandrill
#    - mailgun
#    - postmark
#    - sendgrid
email_handler:

# chosen mail service's api key
email_handler_key:

master_killswitch: false

datestamp_format: "m/d/Y"

# akismet_api_key: 
Answered by Jason Varga!
>>>>>>> Answered <<<<<<<
4 Replies
2 Followers