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.
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.
Hi ben, Thanks for your update, i could not get this to work iether, im using a onclick, update a variable called “myvariable” - the first index is in focus using what u mentioned above, however the next button click updates the myvariable value to 2 the input box with index2 does not focus —i have used
dmx-bind:autofocus “$index == myvariable”
“myvariable” increments by 1 on every click of the button
I also struggled a lot with repeat region and unfortunately I have to confirm to you that wappler at the moment does not allow the control and manipulation of the input box in the repeat region or repeat children.