I am building an autocomplete textbox control in Powerapps, using SharePoint as a datasource.
I have added a Gallery below the textbox. OnSelect,OnChange of the textbox, I have set the Gallery visibility flag to true.
UpdateContext({showgalleryflag:true});

In the Gallery, Items property, I have populated the datasource as below
If(Not(DataCardValue5.Text=""),Filter('DS',DataCardValue5.Text in Event));
In the Gallery, OnSelect,
UpdateContext({showgalleryflag:false,Event:ThisItem.Event});
In the Gallery, Visible
showgalleryflag
Still i notice, that the autocomplete doesn't work. The Gallery doesn't shows up, even when the Event is changed/selected.
Any technical advice would be helpful. Thanks.