Show and hide elements in a collection list based on CMS field is set or not

As far as I can tell, I need to add a switch to the CMS item for my client to hide or show specific parts of an item I'm showing in a collection list. It would be much easier if I could show elements only if certain fields are populated. This should be the top priority.

Example: A collection list with employees, but some of them don't have phone numbers you can call. Hereby if the field is empty in the CMS, I would like to hide the whole div containing both the link and the phone icon. This is basic stuff. I would actually also like to show a completely other div if there is no phone number. So it should be hide/show based on data.

Currently, dynamic pages have the visibility options that I’m missing.

  • Rasmus Kønig Lund
  • May 22 2025
  • Reviewed