It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Setting autocomplete-multiuser field using Javascript/JQuery

We have a blueprint wizard that selects appropriate templates and fills in a bunch of values depending on what the user selects. We have one page that's got an autocomplete-multiuser field.

We now have the need, in some cases, to pre-fill this and select a user or two as a suggestion for the user. I can't for the life of me work out how to do this.

As the field is a Select2 under the hood - I thought it would be as simple as:

$('#user-field').val("name.lastname@company.com");
$('#user-field').trigger("change");

 However, it is not. Any help would be much appreciated!

1 answer

0 votes

Hello Eliot,

If you're still encountering issues with this, have you raised a question at the Developer Community from our Developer Resources site? The folks there will be more equipped to help you!

Let me know if you have any trouble with that.

Regards,

Shannon  

Hi Shannon,

I hadn't considered that - I'll give that a go. Thank you!

Elliot

Like Shannon Spaniol likes this

You're welcome, Elliot. 

I hope you find the answer you are looking for!

Take care,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,501 views 6 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you