Forums

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

Confluence Javascript Autocomplete input field not working

Dirk Brutscher
Contributor
March 7, 2021

Hi,

I use javascript a autocomplete field like mentioned on this page: https://developer.atlassian.com/server/confluence/javascript-components

My problem, I use the field in a dialog whose code will be injected in the dom later, hence the autocomplete feature does not work reliable, sometimes it works, sometimes not. I think I have to call some kind of binding method to notify confluence, that a ne element is present and should be part of the autocomplete feature.

 

Any suggestions?

1 answer

1 accepted

0 votes
Answer accepted
Dirk Brutscher
Contributor
March 8, 2021

I think, I found something:

AJS.Confluence.Binder.autocompleteUserOrGroup(document.getElementById("..."));

AJS.Confluence.Binder.autocompleteUserOrGroup(); // for document.body

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
atlassian, confluence, marketing templates, confluence templates, marketing project management, content strategy, campaign planning, marketing collaboration, confluence for marketers, atlassian learning, marketing workflows, confluence best practices

5 must-use templates for Marketing teams (from a Confluence Marketer!) 👩🏻‍🎨

Who doesn’t love a good template? We sure do! Check out our top template picks for Marketing teams who want to streamline their processes, enhance collaboration, and take their marketing to new heights.

Read more 📚
AUG Leaders

Atlassian Community Events