Provide a user with a drop down list to select from

Trying to have a field in a table, but want to limit users to pre-defined choices. The goal is have better filtering of issues. Is there a way to do this?

2 answers

You should be able to add HTML to a confluence page depending on what version you are using. It could look something like this:

<select>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>

Luther,

Thanks for this. I've tried it and it works. However, when you navigate away from the page and then re-open it, the option you selected reverts back to the option that is first in the list. Which makes it not very useful.

Do you have any idea why this is happening and how to stop it? I've added it using the HTML plugin (and direclty into the page's HTML). It works with the plugin.

Cheers.

It happens because HTML is stateless, unless you make it stateful (either with cookies or query string params or some other mechanism).

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

1,032 views 23 13
Join discussion

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