Provide a user with a drop down list to select from

Tony Stoughton February 24, 2014

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

1 vote
Matthew J. Horn
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.
February 27, 2014

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

Mick Davidson
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.
February 27, 2014

Thanks Matthew.

1 vote
Luther Hargrove
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.
February 24, 2014

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>

Mick Davidson
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.
February 26, 2014

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events