Hi, I have a dynamic item page that has a repeater embedded in it to show related records from another collection. It works fine, but if there are no related records I would like for the repeater to not appear at all. Is this possible? Thanks… -Chris
Hi Chris!
First I would suggest to make the repeater hidden on load.
Assuming you use a query to find relevant results to show I’d suggest that after the query has returned its results add a condition - if(results == 0) -
- hide the component.
- add an error message for the user, that there are no results found.
else (there are results), show the component and the results.
Hope it helps.
Best of luck!
Doron.