Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional hide/show confluence template content

Philip_Myers
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 1, 2022

I have a custom template.

At the top I have a list variable that is entered when the template is used to create a page:

list:
Option 1
Option 2

Page Content:
Section A 
Section B
Section C

I would like to hide Section B when Option 2 is selected in the list,
but show Section B when Option 1 is selected. 

Is this possible?
I would prefer not to have two templates to maintain or have the person using the template to manually remove Section B when it does not apply.

2 answers

0 votes
Steve Shaw
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 24, 2023

Please check out this new article that addresses this kind of issue: https://confluence.atlassian.com/confkb/writing-advanced-user-macros-1189784673.html

0 votes
Philip_Myers
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 1, 2022

I could accomplish it if I could put some custom CSS in the template

viperkarthik
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 10, 2022

Hi @Philip_Myers , I am also working on similar requirement can you help me how this can be achieved.

Adam Kneitz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 15, 2022

I am also interested in such a solution!

adavis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 27, 2022

Were you able to find a solution for this? 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events