Skip to main content

{exp:formidable:drafts}

Lists the logged-in member's unfinished save-and-resume drafts, most recently saved first, with a link back to each. Use it on an account page: "Forms you have not finished".

It only ever lists the drafts of the member viewing the page. A guest gets {if no_results}. Drafts past their expiry are left out, since their links no longer open them.

Parameters​

form_handle=​

Example
form_handle="application"

Only this form's drafts. form_id= is also accepted.

form_id=​

Example
form_id="3"

Only this form's drafts, by id.

limit=​

Default
10
Example
limit="5"

How many to list, at most 100.

Variables​

Variable
{resume_url}The link back to the draft, on the page the form was saved from
{form_name}, {form_handle}The form
{draft_name}The draft's name, from the form's submission name setting, with the answers saved so far
{saved_at}When it was last saved. Accepts format=
{started_at}When it was first saved. Accepts format=
{expires_at}When it can no longer be resumed, or 0 if drafts never expire. Accepts format=
{draft_page}The page it was saved on
{count}, {total_results}Position and total
templates/default_site/account.group/index.html
<h2>Forms you have not finished</h2>
<ul>
{exp:formidable:drafts}
<li>
<a href="{resume_url}">{form_name}</a>, saved {saved_at format="%M %j"}
{if expires_at}(kept until {expires_at format="%M %j"}){/if}
</li>
{if no_results}<li>Nothing waiting.</li>{/if}
{/exp:formidable:drafts}
</ul>