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

Thanks Matthew.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,521 views 25 14
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