It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can you do a checkbox with macros?

I want to do a checkbox with macros or someting else.

5 answers

2 votes

You don't need something complicated like that - just add a tasklist!

https://confluence.atlassian.com/display/DOC/Tasklist+Macro

Since Confluence 5, this feature is right in the editor. Just find the checkmarks, it's fully integrated with workbox.

this is the most simple solution, thanks!

Tasklist.png

Looks like this -- it's a little confusing since it's called a 'tasklist' in other parts of the documentation.

I think Radu is right, we need a little more guidance on what you need to perform. Anyway, you can do a checkbox with custom macros. However it would be static, and would not allow you to edit anything on the list itself. Unless you want a very specific list that needs to be done. Go to user macros and create a new one.

  1. Name
  2. Title
  3. Rendered
  4. And the Code
    ## @noparams
    
    <script>
    function check()
      {
      document.getElementById("check1").checked=true
      }
    function uncheck()
      {
      document.getElementById("check1").checked=false
      }
    </script>
    
    <form>
    <input type="checkbox" id="check1">Do you like this checkbox?
    </form>
    
    <button onclick="check()">Select All</button>
    <button onclick="uncheck()">Unselect All</button>

And it would fill your page with a custom Macro, but without being able to edit any of the things to do of the checklist.

Hope it helps

Hi

How can I make the checkboxes remember the ticks?

I am trying to create checkboxes but do not want them to be tasks. I have used your code to do so but when i switch pages, all the checkboxes get unticked. Is there some way in which I can make the checkboxes retain the ticks.

Thanks in advance

I think your question should be more specific: try to reformulate it, like "Can you do a checkbox with macros or something else?". Leaving the joke aside, I really think you should explain to the confluence experts on this forum what you want to achieve ...

The Checkbox plugin for Confluence can do what you ask. You get get it from the Atlassian Marketplace at https://marketplace.atlassian.com/plugins/com.gumvillage.confluence.checkbox.checkbox

In a related question, we use numbered lists throughout our documentation for procedures users should follow. I would like to display numbered lists with a checkbox next to each step so that users can check the box as they follow the steps and keep track of what they've done. Something like this, where [  ] is the checkbox icon:

[  ] 1. Download the software at foo.com.

[  ] 2. In the directory where you downloaded it, launch the RUNME program file and follow the steps on the screen.

And as users follow these steps, they would ideally be able to click those check boxes and a check mark would appear so that they know they completed it.

Ideally, it would be great to add this checkbox to the stylesheet so that it would appear automatically in numbered lists.

Any ideas?

Hi Jackie,

You can use the Checkbox macro to get most of what you want. The screenshot below shows your example, with a checkbox for each point and the first one checked. You might need to play with the formatting to get it to align more closely to what you have it mind.

2016-06-03 08_52_10-If One - demo - Confluence.png

You get get it from the Atlassian Marketplace here: https://marketplace.atlassian.com/plugins/com.gumvillage.confluence.checkbox.checkbox.

Thanks, I'll check it out (no pun intended) and see if we can make it work the way we want it.

Please stop suggesting expensive plugins as "workarounds".

We have a somewhat different use case.

We want to provide a Confluence page that can be collaboratively edited. When a section should contain one of several well-known fixed options, we'd like to provide a selection list inline on the page. When a selection is made, just the text associated with the selection should appear on the page, with a little dropdown icon so it can be changed.

Basically we want a Confluence page to act like a mini-form.  We don't need traditional web form text fields; the text is just edited inline as for any page.

Gumville version is not supported for 6.5.0

Are there any other workarounds?

Thanks

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

3,745 views 15 37
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you