
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2023 10:01 AM
I'm looking to use the Document Display component to show our users a document while they are working on a related record. I would like it to stay in the sidebar, similar to the attachment list or templates. But no matter where I've tried to use Document Display it uses the entire tab, and you can't see the related content.
Here you see add the component document display and set an attachment for reference.
The side bar shows
Then when you click on it this happens
Is there a better approach?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2025 05:10 AM - edited 03-04-2025 05:12 AM
Hello @bradwestvig, @tstocking and @Stephen Farrar, I managed to solve this by creating a container (Layouts -> Flexbox) with the following CSS settings for the internal layer:
{
display: flex;
flex-direction: column;
height: 1500px;
position: relative;
width: 100%;
}
The key here is the position: relative; property. You can adjust the other settings based on your needs and requirements. Inside this container, insert the Document Viewer component, and it will stay within the container. Hope this helps others who may encounter the same issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 10:17 PM
Sorry for the delayed response @bradwestvig - we ended up just keeping the document display full screen for now, customer seems to be happy enough with that for now.
I didn't try, but given the modal seemed to contain it probably you could create a custom sized modal and put the document display component inside that and it might achieve what you're after.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 06:21 AM
Hi Brad,
We are running into the same issue. Were you ever able to get around not using an iframe and you are using an iframe, would you mind sharing the code to get it to display a document related to the current record?
Thanks in advance,
Todd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2024 05:18 AM
Hi @tstocking , I need to display the documents related to a record when a user selects a particular record. Did you find any solution. please share the solution if you got any.
Thanks in advance,
Ani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2025 05:10 AM - edited 03-04-2025 05:12 AM
Hello @bradwestvig, @tstocking and @Stephen Farrar, I managed to solve this by creating a container (Layouts -> Flexbox) with the following CSS settings for the internal layer:
{
display: flex;
flex-direction: column;
height: 1500px;
position: relative;
width: 100%;
}
The key here is the position: relative; property. You can adjust the other settings based on your needs and requirements. Inside this container, insert the Document Viewer component, and it will stay within the container. Hope this helps others who may encounter the same issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2025 05:52 AM
@Stephen Farrar by any chance did you get a "canvas error" when using the document display in a modal? this happens when I use the delete button on the preview. the attachment is removed and the modal closes(via event) but the i get a "canvas error"