Form:Submissions Tag

This is how you fetch data and display data from form submissions. It works very much like the collection tag.

Example

{{ form:submissions in="feedback" }}
    <div>
        Submitted on {{ date }}<br>
        Name: {{ name }}<br>
        Rating: {{ rating }}<br>
        Comment: {{ comment }}
    </div>
{{ /form:submissions }}

Parameters

handle|is|in|form|formset string

Specify the name of the form. Only required if you do not use the form:set tag, or don't have a form defined in the current context.

Variables

Variable Type Description

submission data

mixed

Each submission has access to all the submitted data.

date

Carbon object

Along with the submission data, all submissions will contain the date they were submitted.

no_results

boolean

true if no results.

total_results

integer

The total number of results, if any.

Betterify this page on Github!