I have a tile component that summarises a record a user has made with a navigation button. When the user clicks on the navigation button, I want them to be able to view a page with the full record. My challenge is that there are 10 different types of records, and so there are 10 different pages that the user could navigate to, spending on the record type. Imagine that each tile summarises a record about a different product, and so depending on the tile the user clicks on, they might need to navigate to the page for Product Type 1, Product Type 2, Product Type 3 etc.
My question is, how do I set the navigation path on the navigation button dynamically from the record that has been passed to the tile component?
Set navigation path dynamically
Actions & Logic
I have tried conditional logic that directs users to a different page depending on a "Product Type" variable in the record, but if I expand the number of product types in the future I will need to keep adding to the logic. I'd rather avoid this!
Yes
1
4 replies