Hey,
I have a form containing an autocomplete (Product_id):
<input class="form-control" id="product_id" name="product_id" is="dmx-autocomplete" dmx-bind:data="srvc_productSearchList.data.qr_productSearchList" optiontext="prd_Name" optionvalue="prd_id" dmx-on:updated="data_detailProductLine.select(value.toNumber());category.setValue(data_detailProductLine.data.prd_Cat_id);notifies1.success(value);inp_quantity.focus()" placeholder="Type here Product name..." required="true" autofocus="true">
And an input field (Quantity):
<input type="number" class="form-control text-center" id="inp_quantity" name="inp_quantity" aria-describedby="input1_help" placeholder="Quantity" value="1">
I need (if it is possible) when the autocomplete input updates/changes (select a value) to set the focus to the other input (Quantity)…
I have tried every dynamic event but autocomplete even if I select a value it doesn’t loose the focus.
But if I select a value in the autocomplete and then clear it and set another value it works…
Here is a video for this second change:
Order Addition - Google Chrome 2023-08-19 09-38-54
Probably I haven’t understood how focus() or autocomplete works.
Is this possible to get this to work or I should just forget about it?