Focus on new instance?

Can someone help me figure out how I can set focus on the new instance please?

{run: count=1}
{repeat: for i in seq(1,count)}{formtext:default=;name=item}{="\n"}{endrepeat}{button: #increment
count= count+ 1
#focus
focus("item")
; label={{^^%E2%9E%95^^}}}

Hi @Nigel.D,

I don't think that is possible currently. focus() will focus the first field with the specified name. If you have multiple fields with the same name, you won't be able to choose between them.

It would be nice to do what you want though. We'll think about how to make that possible.

1 Like