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
AUG Leaders

Atlassian Community Events