Use the Document embed control to preview a file inside a Yeeflow form or dashboard. For example, put an invoice preview next to the fields a reviewer needs to check.
What is a Document embed?
The control displays one document, such as a PDF, Word document, or presentation. Supply a file link or bind the source to an attachment, field, or variable. For an invoice review form, binding Invoice File lets the preview follow the record that the reviewer opens.
Document access
Check the preview with a reviewer account that has the intended access. The document source has its own permissions.
Add a Document embed
Open the form or dashboard in the designer. Find Document embed in the controls panel and drag it into a section or container.
Configuring Document embed
Content Settings
Document source
Use a fixed document URL when every record should show the same file. To show the current invoice, bind the source to Invoice File or a variable that contains the document reference.
Appearance Settings
Height
Define the height of the embedded document viewer. Supported units include:px,%,em,rem,vh, andcalc().Hide if value is empty
Turn this on to hide the control when the source is empty. If readers need guidance instead, test the fallback with an empty record.Fallback
Enter a message to show when the source is empty, such as “No invoice has been uploaded.”Dynamic display rules
You can configure Dynamic display rules to control when this control appears, based on conditions like form input, user roles, or other data values.
Style of the Document embed
Preview the document on desktop and mobile. Set the viewer height so readers can see the first page and still reach nearby form controls.
General
Fallback
Typography: Adjust the font style of the fallback message.
Text color: Set the color of the fallback text.
Arrows
Style the navigation arrows used to flip through pages within the embedded document.
You can define styles for three states: Normal, Hover, and Active.
For each state, the following options are available:
Size: Set the size of the arrow icon. Supported units include:
px,em,rem,vw, andcalc().Color: Define the arrow color.
Background color: Set the background color of the arrow area.
Border type: Choose the border style.
Radius: Set the border radius for rounded corners. Supported units include:
px,%,em,rem, andcalc().Shadow: Apply shadow effects to enhance depth.
Prev arrow & Next arrow
Customize spacing for the previous and next arrows:
Left indent (Prev arrow): Control the horizontal offset of the previous arrow. Supported units include:
px,%,em,rem,vh, andcalc().Right indent (Next arrow): Control the horizontal offset of the next arrow. Supported units include:
px,%,em,rem,vh, andcalc().
You can use pixel (px), percentage (%), em, rem, vh, or custom values for sizing and spacing units.
Advanced Settings
Set the Advanced options that are applicable to this control.

