% local form, viewlibrary, page_info = ... %>
<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<%= html.html_escape(form.label) %>
<% if form.value.status.errtxt then
form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action
htmlviewfunctions.displayformstart(form)
else %>
<% end %>
<% htmlviewfunctions.displayitem(form.value.status) %>
<% if form.value.status.errtxt then
htmlviewfunctions.displayformend(form)
else %>
<% end %>