Conditional Content for Confluence
Asked by Amedeo:

Hi everyone,

is there the possibility to create a macro where I can select different labels/parameters and the selected field allows other possible selections?

In other word, I would replicate what is a Conditional Formatting for Excel File.

I found the macro Conditional Content, but when I select it nothing appears in the page.

![Capture2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/217285i5470F364F4E6F151/image-size/large?v=v2&px=999 "Capture2.PNG")

Is there any other possible solution?

Thank you in advance

Regards,

Amedeo


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Amedeo](/t5/user/viewprofilepage/user-id/4620610) ,

you could develop your own macro in which you define the condition or use an external app like Scroll Documents [https://help.k15t.com/scroll-docs/3.4.0/server/define-conditional-content-188550189.html#:\~:text=Define%20content%20that%20only%20appears,be%20included%20in%20which%20variant](https://help.k15t.com/scroll-docs/3.4.0/server/define-conditional-content-188550189.html#:~:text=Define%20content%20that%20only%20appears,be%20included%20in%20which%20variant).

[https://marketplace.atlassian.com/apps/1217608/scroll-documents-for-confluence?tab=overview\&hosting=server](https://marketplace.atlassian.com/apps/1217608/scroll-documents-for-confluence?tab=overview&hosting=server)

Hope this helps,

Fabio

comments: author: Amedeo
body: Hi [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528) ,

thank you for the reply.

I'm not an expert on Confluence and I'm not the JIRA Admin; can you help me defining the right macro? Where I can write it?

Thank you again

Amedeo


author: Matt Reiner [K15t]
body: [@Amedeo](/t5/user/viewprofilepage/user-id/4620610) this is indeed part of my team's app Scroll Documents. Let me know if you need any help getting started with conditional content/variants. We're here to help.


author: Fabio Racobaldo _Herzum_
body: Hi [@Amedeo](/t5/user/viewprofilepage/user-id/4620610) , here a guide <https://developer.atlassian.com/server/confluence/writing-macros/>


author: Matt Reiner [K15t]
body: [@Amedeo](/t5/user/viewprofilepage/user-id/4620610) the macro you're looking at is part of our app Scroll Documents, which you have to set up with variants in order for this macro to work. Here is the documentation for this process: <https://help.k15t.com/scroll-docs/3.4.0/server/manage-variants-188550180.html>

Also, feel free to email us at help@k15t.com. We'll get you going.


author: Amedeo
body: Hi everyone,

thank you for the replies.

I'll try all the suggestions and I'll come back with some feedback.

Thank you and regards,

Amedeo


author: Atlas Foulks
body: Hi [@Amedeo](/t5/user/viewprofilepage/user-id/4620610)

We've recently published a new knowledge base article that may be helpful in creating the functionality you're looking for. The article walks through creating two user macros that allow you to conditionally hide or show any blocks of content that match a predefined ID.

You can find this guide in the new [Writing Advanced User Macros](https://confluence.atlassian.com/confkb/writing-advanced-user-macros-1189784673.html) article.


author: Shardul Juyal_Addteq_
body: Hi [@Amedeo](/t5/user/viewprofilepage/user-id/4620610)

If you want to replicate conditional formatting, you can use our [Excellenatable](https://marketplace.atlassian.com/apps/1211672/excellentable-spreadsheet-for-confluence?tab=overview) spreadsheet macro.

You would also be able to import conditional formatting from some an .xlsx file

Regards

Shardul


Tags: atl-orange

confluence-server

server