UI Builder Typeahead Multi clears it's state after Client State Variable is changed.

Sergey Sidorin
Tera Guru

I have a simple setup for UI Builder page:

 

Typeahead Multi component with default settings.

Client state variable, let's call it "var".

A button with event "Update Client State Variable", "var=1".

 

Scenario: 

Select "User1" or "User3" with typeahead multi.

Click the button, so, change the client state variable.

 

Result:

Typeahead multi is cleared.

 

SN Version: glide-tokyo-07-08-2022__patch1-09-01-2022.

 

This strange behavior makes Typeahead Multi component completely useless, unfortunately.

1 ACCEPTED SOLUTION

Nootan Bhat
Kilo Sage

Hi @Sergey Sidorin,

In Typehead multi component, there is a configuration called 'Selected Items' it is under Lists.

Set that value to @state.var.

This will help you in keeping the value of multi selects  as is.

NootanBhat_0-1672664718783.png

 

 

Let me know if it helped.

 

Thanks,

View solution in original post

3 REPLIES 3

Sergey Sidorin
Tera Guru

Reproduced in glide-sandiego-12-22-2021__patch0-hotfix1-02-01-2022 also.

 

Nootan Bhat
Kilo Sage

Hi @Sergey Sidorin,

In Typehead multi component, there is a configuration called 'Selected Items' it is under Lists.

Set that value to @state.var.

This will help you in keeping the value of multi selects  as is.

NootanBhat_0-1672664718783.png

 

 

Let me know if it helped.

 

Thanks,

Thank you, Nootan! It really helps. Actually, I have to bind "Selected items" to something else variable.