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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're welcome, Elliot.
I hope you find the answer you are looking for!
Take care,
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.