% local form, viewlibrary, page_info = ...
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
<% if form.value.data then %>
<% local header_level = htmlviewfunctions.displaysectionstart(form.value.data, page_info) %>
<% htmlviewfunctions.displaysectionend(header_level) %>
<% end %>
<%
form.value.data = nil
htmlviewfunctions.displayitem(form, page_info)
%>