On my details page, I have an “Item Details” block at the top, connected to my (same) data source. This block dynamically displays the details of the selected record.
I add linked records, adding additional list blocks below the details block and filter them using the current record’s data.
Can I hide that first block with on-page custom code and everything work fine?
Does the first block need me to include any fields for them to be available in other blocks on the same page?
#list-details1 {
display: none;
}
Hi Mark,
Do you want to have the item-details data available but keep the block hidden/not visible so it doesn’t overwhelm the page layout?
If that’s the case, I strongly advise against relying on custom code (including CSS).
The best practice is to keep your item-details block, remove all data from it, set the top and bottom padding to 0, and avoid using display: none. That’s it!
I had some problems years ago when using display: none. For some strange reason, as it just should hide the element, the block is still loaded in the DOM — it should have worked, but the behavior was intermittent
Yes, exactly this: to keep details available but hidden.
Thanks for your helpful reply @matthieu_chateau