diegojmap Posted July 20, 2020 Posted July 20, 2020 Is it possible to use auto complete with TagField? 1 Quote
diegojmap Posted July 29, 2020 Author Posted July 29, 2020 Is there a solution? I am using a third party component and wanted to remove it from my application. Quote
Sherzod Posted July 29, 2020 Posted July 29, 2020 1 hour ago, diegojmap said: Is there a solution? I am using a third party component and wanted to remove it from my application. Hello, Sorry for the late response. We need to check. 1 Quote
Sherzod Posted July 29, 2020 Posted July 29, 2020 For starters, try this approach: You will use the spacebar to autocomplete. UniTagField.ClientEvents.UniEvents -> function beforeInit(sender, config) { config.collapseOnSelect=true; sender._val=""; } UniTagField.ClientEvents.ExtEvents -> function keypress(sender, e, eOpts) { if (e.event.key == " ") { if (sender._val != "") { var selValId = sender.store.findRecord("val", sender._val); if (selValId) { var selValues = sender.getValue(); selValues.push(selValId.id); sender._val = ""; sender.setValue(selValues); sender.blur(); sender.focus(); } } } if (e.event.key != " ") { sender._val += e.event.key; } } Quote
skafy Posted October 3, 2022 Posted October 3, 2022 Hi, This don't seems to work anymore. Any other suggestion? Quote
skafy Posted October 4, 2022 Posted October 4, 2022 Ok. Please let me know if you find anything. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.