How to hide a section on a dynamic item page when a specific CMS field is blank

Question:
How can I hide a section on a dynamic page when a specific CMS field is blank.

Product:
Wix Studio

What are you trying to achieve:
The website belongs to a doctor, who offers treatment that you can book via the website. Some of the treatments have explanatory pages, that need to be linked/added in the dynamic item page.

I want to put a “read more” button, that links to the explanatory page. Or a collapsible text? Or if these wont work, then a document, that will be added to the CMS collections. Only problem is that the texts are long, and wont look good in the dynamic item page, thats why I wanted to have it as a seperate page, if possible.

What have you already tried:
I have not tried anything yet, as it would require coding, which I’m not able to.

I would appreciate any help! Thank you!

Hi, Lisa_L !!

I think it is possible to link from one dynamic page to another, so how about creating a new dynamic page solely for displaying more detailed content and connecting them together? :wink:

1 Like

Definitely possible, whether you want to link another collection’s dynamic page, or if you just want hide/show functionality, they’re all rather simple

Generally to access the current item:
$w('#dynamicDataset').getCurrentItem()

1 Like

Thank you to both of you! Trying that out now and will report back :slight_smile: