Anyone know how to create a conditional view on a page - to populate an item from another page based on specific conditions? Specifically, the status of a discussion topic would cause that Discussion topic to show up on another page.
Hello @Lacey_Jagger
Can you give more details about your use case? Do you want to do this dynamically, like through a button or automation, or is it fine to set it up manually (where the maker creates another page, inserts the view, and so on)?
I think both approaches are possible with a little creativity.
For the dynamic approach, which is a bit more complex, you could create:
- A page with the view as template
- A subpage with control sets and formulas used by the view to filter the rows
When the button is pressed, it could:
- Set the controls to the specific use case
- Use the DuplicatePage formula with
copySubpages
andcreateView
options enabled
This would create a new page with the view already filtered by the controls in the subpage, making it ready for use.
Cheers,
Arnhold
However, this may not be the best approach.
You could instead use a single page with a control that selects the discussion topic and a view that shows the table filtered based on the selected control.
Then, elsewhere in the doc, you can place a button that sets the control to the desired topic and opens the page.
With this setup, you would have just one page that dynamically changes its content based on the actions triggered in different parts of the doc.
Cheers
Arnhold
I think i have it figured out but I’m open to more intelligent options if they exist. I have a discussion topics list on “page B” with status options for each item. I would like only the items with a specific status to populate on “page A”. The solution I have so far is to set up a filtered view of that list in “page A”. If nothing fits the filter, it’s a blank list visible on “page A” so if there is more elegant solution, I’m all ears. Thanks!
That’s about as good as it gets.
Keep it simple!