The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events