Print the App Schema (Simple)
Using this code in your BODY, STYLES, and SCRIPT tabs to allow you to print your Fulcrum app and share it with others as a PDF. You do not need to make it active. Keep it inactive and download or print from the advanced report builder page.
<h1><%= form.name %></h1>
<br>
<div>
<% RENDER(record, null, ({element, value, renderSection, renderRepeatableItems, container, index, feature, parent, allValues}) => { %>
<% if (element.isSectionElement) { %>
<div class='field-section'>
<h1 class='field-section-title'><%= element.label %></h1>
<div class='field-section-content'>
<% renderSection() %>
</div>
</div>
<% } else { %>
<div class='field'>
<h2 class='field-label'><%= element.label %></h2>
<div class='field-value pre'>Required?: <%= element._isRequired %></div>
</div>
<% } %>
<% }) %>
</div>
Leave Blank
Leave Blank
h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0;
}
.flex-align-center {
display: flex;
align-items: center;
}
.field {
padding: 5px 0;
border-bottom: 1px solid #e1e1e1;
page-break-inside: avoid;
display: flex;
}
.photo-field {
display: block;
page-break-inside: auto;
}
.field:last-of-type {
border-bottom: none;
}
.meta-field {
border-bottom: 1px solid #ddd;
margin-bottom: 5px;
padding-bottom: 5px;
}
.meta-field-group .meta-field:first-of-type {
border-bottom: none;
}
.field-label {
font-weight: 900;
width: 30%;
font-size: 12px;
box-sizing: border-box;
}
.meta-field-label {
box-sizing: border-box;
color: #41403b;
font-size: 13px;
font-weight: 900;
margin-bottom: 10px;
text-transform: uppercase;
width: 30%;
}
.field-label-full {
font-weight: normal;
width: 100%;
box-sizing: border-box;
font-size: 12px;
}
.field-value {
width: 70%;
box-sizing: border-box;
border-left: 1px solid #e1e1e1;
padding-left: 10px;
}
.meta-field-value {
color: #7d7d7d;
padding-bottom: 3px;
font-size: 14px;
}
.meta-field-value.flex-align-center svg {
padding-right: 5px;
}
.meta-field-value-large {
font-size: 18px;
}
.cover-photo-container, .photo-column figure {
position: relative;
}
.cover-photo-container img {
height: 300px;
object-fit: cover;
}
.cover-photo-container figcaption, .photo-column figcaption {
position: absolute;
bottom: 18px;
margin: 0;
padding: 10px;
background: rgba(255,255,255,.85);
border-radius: 0 7px 7px 0;
border: 1px dashed #bbb;
border-left: none;
margin-right: 15px;
left: 0;
}
.cover-photo-container img.photo-landscape { height: 500px; }
.cover-photo-container img.photo-legal { height: 560px; }
.cover-photo-container img.photo-legal-ls { height: 498px; }
.cover-photo-container img.photo-tabloid { height: 740px; }
.cover-photo-container img.photo-tabloid-ls { height: 740px; }
.cover-photo-container img.photo-ledger { height: 740px; }
.cover-photo-container img.photo-ledger-ls { height: 740px; }
.cover-photo-container img.photo-a4 { height: 380px; }
.cover-photo-container img.photo-a4-ls { height: 470px; }
.cover-photo-container img.photo-a3 { height: 840px; }
.cover-photo-container img.photo-a3-ls { height: 790px; }
.pre {
white-space: pre-wrap;
}
.page-break-before {
page-break-before: always;
}
.page-break-after {
page-break-after: always;
}
.field-value .photo {
max-width: 470px;
max-height: 470px;
margin-top: 6px;
}
.field-value .signature {
max-width: 470px;
max-height: 470px;
margin-top: 6px;
}
.field-value .status-color {
width: 14px;
height: 14px;
border-radius: 3px;
margin-right: 8px;
position: relative;
float: left;
top: 0px;
}
.meta-field-value .status-color {
width: 14px;
height: 14px;
border-radius: 3px;
margin-right: 8px;
position: relative;
float: left;
top: 0px;
}
.field-section {
border-bottom: 2px solid #e1e1e1;
border-right: 2px solid #e1e1e1;
margin-bottom: 8px;
}
.field-section.metadata {
color: #41403b;
margin: 10px 0;
border: none;
}
.field-section-title {
background: #f4f4f4;
font-weight: bold;
font-size: 18px;
border-left: 3px solid #000;
margin-top: 20px;
margin-bottom: 8px;
padding: 7px 12px;
}
.field-repeatable-title {
background: #f4f4f4;
font-weight: bold;
font-size: 18px;
border-left: 3px solid #000;
margin-top: 20px;
margin-bottom: 8px;
padding: 7px 12px;
}
.field-repeatable-item {
padding: 10px 0;
}
.field-repeatable-item .field-section-title,
.field-repeatable-item .field-repeatable-title {
font-size: 16px;
border-color: #ddd;
background: #f9f9f9;
}
.field-repeatable-item > h2 {
background: #f9f9f9;
border-left: 3px solid #ddd;
border-bottom: 2px solid #ddd;
font-size: 16px;
padding: 7px 12px;
margin: 10px 0;
}
.field-repeatable-table {
border-collapse: collapse;
width: 100%;
margin: 10px 0;
}
.field-repeatable-table thead {
display: table-header-group;
break-inside: avoid;
}
.field-repeatable-table td, .field-repeatable-table th {
border: 1px solid #ccc;
padding: 4px;
text-align: left;
}
.field-repeatable-table th {
background: #eee;
}
.field-repeatable-table tr {
page-break-inside: avoid;
}
.field-repeatable-table tr:nth-child(even) {
background-color: #f4f4f4;
}
.photo-row {
padding-top: 4px;
}
.photo-column {
box-sizing: border-box;
display: inline;
}
.photo-column figure {
margin-inline-start: 0px;
margin-inline-end: 0px;
margin-block-start: 0px;
margin-block-end: 0px;
display: inline;
}
.photo-column figure img {
max-height: 460px;
max-width: 49%;
}
.photo-column figure img.photo-landscape { max-height: 760px; max-width: 47%; }
.photo-column figure img.photo-legal-ls { max-height: 680px; }
.photo-column figure img.photo-tabloid { max-height: 960px; }
.photo-column figure img.photo-tabloid-ls { max-height: 960px; }
.photo-column figure img.photo-ledger { max-height: 960px; }
.photo-column figure img.photo-ledger-ls { max-height: 740px; }
.photo-column figure img.photo-a4-ls { max-height: 760px; }
.photo-column figure img.photo-a3 { max-height: 960px; }
.photo-column figure img.photo-a3-ls { max-height: 960px; }
.footer {
display: flex;
justify-content: space-between;
color: #7d7d7d;
}
.footer-logo {
display: flex;
align-items: center;
}
.footer-logo img, .footer-branding img {
height: 40px;
padding-right: 10px;
}
.footer-company-info, .footer-meta, .footer-branding {
display: flex;
align-items: center;
}
.footer-company {
display: flex;
align-items: center;
color: #41403b;
}
.footer-meta {
text-align: center;
}
.footer-address, .footer-meta {
font-size: 11px;
}
.page-info {
width: 300px;
float: right;
text-align: right;
margin-top: 15px;
}
.title {
padding: 15px 0px 0px 0px;
page-break-inside: avoid;
display: flex;
padding-right: 5px;
}
.title hr {
margin: 6px 0px 12px;
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ddd;
padding: 0;
}
.title h1 {
color: #41403b;
font-size: 3em;
font-weight: 300;
}
.title h2 {
font-weight: 400;
color: #7d7d7d;
font-size: 14px;
}
.title-label {
flex: 4 1;
}
.title-image {
flex: 1 1;
text-align: right;
}
.title-image img {
width: 100px;
border-radius: 5px;
border: 10px solid #fff;
box-shadow: 0 0 3px #ccc;
}
.meta-wrapper {
display: flex;
align-items: flex-start;
}
.meta-map {
margin-top: 20px;
}
.meta-map img {
width: auto;
height: 400px;
}
.meta-map img.ls-nometa {
width: 100%;
height: auto;
}
.meta-map img.letter-ls { height: 440px; }
.meta-map img.legal-ls { height: 440px; }
.meta-map img.tabloid-ls { height: 440px; }
.meta-map img.ledger-pt { height: 440px; }
.meta-map img.a4-ls { height: 440px; }
.meta-map .field {
border: none;
padding-top: 0;
}
.meta-fields-container {
display: flex;
flex-direction: column;
flex: 1;
margin-left: 20px;
}
.meta-fields {
flex: 1;
margin-bottom: 8px;
padding-bottom: 8px;
border-bottom: 1px solid #f4f4f4;
}
.meta-fields:last-of-type {
border-bottom: none;
}
.header {
display: flex;
justify-content: space-between;
margin-top: 15px;
color: #7d7d7d;
}
.header-title, .header-record {
align-items: center;
font-style: italic;
}
Leave Blank
Here is an example of what the form's PDF will resemble.
Updated about 2 months ago