Delete a collection item
Delete a collection item on form submission. This is a Runway only feature.
<perch:form
id="delete_collection_item"
app="pipit_members"
collection="Tickets"
method="POST"
r="/tickest/success"
fail="/tickets/fail"
>
<perch:input type="submit" value="Delete">
<!--* logged-in member's CSRF token *-->
<perch:input type="hidden" id="token">
<!--* collection item's ID *-->
<perch:input type="hidden" id="_id">
</perch:form>
Outputting the form
Refer to the collection item’s form handler on how to output the form.