Forums

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

AutoComplete binding

Mart Bel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 27, 2019

Hello folks,

 

My plugin is almost completed and I am just fixing up a few things...

 

One of my issues right now is that I created a Soy template that I use to populate a dialog in the Macro "Edit" mode.  The template does have multiple AutoComplete fields for user pickers.

When I create a new macro, the dialog shows up and the AutoComplete fields do work as expected.

However, part of the dialog has a dropdown selection and when the user selects a different option, my code calls the proper Soy templates and refreshes the dialog content.  When that happens, all autoComplete fields lose their bindings and then act as normal input field without auto-complete.

Since the user changing the drop down choice is done post-render, how can I make the fields to display the auto-complete behavior?

 

I did use "AJS.Confluence.Binder.autocompleteUserOrGroup()" when the dialog changes, but it does not rebind the fields.

 

The stange thing is that if I close the dialog and re-open it, all fields are now bound again?!?

 

Thanks for helping!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events