i have tried tierleslly to focus() a input box using a a button, it works perfectly without repeat region, however once i have multipe input boxes in repeat region, i can not set focus.
have used dmx-bind:id="‘inputBox’+$index" for the ID’s if the input boxed in repeat.
but can not seem get the click trigger to focus the element.
<div class="d-flex">
<button class="btn" dmx-on:click="inputbox1.focus()">Button</button>
<div id="record" is="dmx-repeat" dmx-bind:repeat="jsonDS1.data"><input type="text" class="form-control" name="jhq" dmx-bind:name="record" dmx-bind:value="jsonDS1.data.Question" aria-describedby="inp_Question_help" placeholder="Enter Question" dmx-bind:id="'inputbox'+$index">
</div>
</div>
Can someone please help pleasee…
i am aware of the auto focus option, hower that doesnt solve my issue.
im trying to create a application form, with a next button, on every click of the next button it needs to go to the next input box in the repeat region.
Community Page
Last updated:
Last updated: