When the page loads i need this input to be set in focus. However, I can’t select this input in the elements dropdown. I believe this is because the element is in a repeating group
I suspect there’s a way to get around this, but probably takes some experimenting to figure out. I’d suggest playing around with putting the input in a reusable element and seeing if you can get it to set focus from a workflow within the reusable element.
Another approach may be to use javascript to set the field to be focused. I suspect there’s a way to select the input within the 1st cell of the RG (which is what you want I believe).
What the code is doing is creating a variable with the ID of the input, then it tries to find it in the DOM. If it does, it sets the focus.
Note that I put a pause of 100 milliseconds before the JS code to give time for the new element to be rendered on the page.
You’d need to modify where you use the code in your workflows if you want to use it for something else, such as setting focus on the first input of the RG. The key tho is that we now have addressable IDs so we can find them whenever we need them.