Anvil Community Forum

Anvil Focus method doesn't work on Buttons?

What I’m trying to do:
Set focus to a button

What I’ve tried and what’s not working:
I have tried just running self.example_button.focus(), but that errors out.

I can get focus there if I use JQuery’s focus method, but that’s taking me out of the Anvil API when the Anvil focus method already exists

Might want to check out and add support for:

1 Like

Just my luck that there’s an existing Feature Request! Thanks @stucork !