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
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
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

372 views 20 10
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