Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

What is ID of select list "None" option?

Hisamitsu Koga
Contributor
December 11, 2016

I want to know ID of select list "None" option. Could you someone let me know what ID of

select list "None" option is.

3 answers

1 vote
Volodymyr Krupach
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.
December 11, 2016

I guess there is no id. It's just empty value option.

Hisamitsu Koga
Contributor
December 11, 2016

Thank you for your prompt comment.

 

0 votes
Heiko Gerlach
Contributor
December 12, 2016

Seems you are asking for a Multi/Single Selection of a customfield. For customfields you need the option value, not the id. Option value for "none" is -1.

0 votes
pbielicki_atlassian
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 11, 2016

It depends what you mean by ID. I assume you're talking about HTML select e.g:

 

<select name="options">
  <option value="none">None</option>
  <option value="one">One</option>
  <option value="two">Two</option>
  <option value="three">Three</option>
</select>

 

Value of None option is "none" in this case but it can be anything and there is no ID. You can have

<option value="0" id="none">None</option>

in such case value of None is 0 and ID is "none". 

 

There is no generic answer for your question I'm afraid. You would need to check the output HTML to see the concrete values.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events