How can I make the live search display drop down results as of 2 characters instead of 3 ?

We have a space with 2 letters country codes and they have all been set as labels and are in the page title. Our users are used to those 2 letters country codes and like to search by them.

Currently the live search macro displays content as of the 3rd character is typed in. How can I change that to 2 ?

Thanks.

2 answers

Hi Martin,

Thanks for your answer.  I know this works (quite well I must say) but if users are to type in "labelText:xx"

they might as well type in the country name smile

I could insert a "hint" with this syntax but I'm not sure it would be used.

I'd rather make things simple for users who are not IT literate.

 

Ok - as it works you need to find a way to do a label search, pre-fill the search box with the text labelText:, or add that string behind the scenes. Some JavaScript would be one way, else make a plugin.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

562 views 20 11
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