Can you do a checkbox with macros?

ticoulat March 24, 2013

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

5 answers

2 votes
Jeremy Largman
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 30, 2013

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

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

Jeremy Largman
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 3, 2013

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

scm di pins August 19, 2015

this is the most simple solution, thanks!

Jeremy Largman
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 14, 2017

Tasklist.png

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

1 vote
GuilhermeA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2013

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

Manali Butey April 24, 2019

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

0 votes
Jackie Wheeler June 1, 2016

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?

James June 2, 2016

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.

Jackie Wheeler June 2, 2016

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

David Skreiner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 29, 2016

Please stop suggesting expensive plugins as "workarounds".

Like # people like this
Greg Carpenter October 3, 2017

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.

Casey Maynard November 20, 2017

Gumville version is not supported for 6.5.0

Are there any other workarounds?

Thanks

0 votes
James July 3, 2013

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

0 votes
Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 24, 2013

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 ...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events