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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published 10 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

92 views 2 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you