Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Search in select list on the create screen

Henrik Gerdtsson
Contributor
August 27, 2020

Hello,

I have a project that have a large Single select list on the create screen. They want to make it searchable. I found a few suggestions about adding a javascript to the field description. That works fine. But the seach is a bit limited, it only searches from start of words. I found that auiSelect2 provides a better seach, see this post. However, adding that to the javascript gives me two select lists on the create screen.

auiSelect2-list.png

The first behaves like a auiSelect2 and the second like the searchable select list.

I have created the script with input from different posts. What have I missed for it to give me the two different lists?

<script type="text/javascript">
new AJS.SingleSelect({
element: AJS.$("#customfield_10233").auiSelect2()
});
</script>
 

 

Is there perhaps a better way to do this? It seems like the possibility to add javascripts to the field description has been removed in later verison. I tried this on 8.11.0 and it does not work. The script is displayed as the field description on the create screen.

auiSelect2-list-8.11.0.png

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.6.1
TAGS
AUG Leaders

Atlassian Community Events