Any way to set focus on a button?

Would there be any way to set focus on a button?

I have a “post” button that I want to be focused when the input is being filled.

As far as I know, and I’m no expert, it is not possible because being focused would mean it is being pressed. But, what you can do is to use conditionals to change the appearance of the button. So set the button ‘This input isn’t clickable’ and use faded out color scheme. Then set
a condition on the Conditionals tab of the button When XXX Input is focused, This button is clickable and Backround Color = some bright color. Hope that helps.

You can focus a button without it clicking if your use case need’s it - First give the button an ID, then grab the PlugBubble Plugin & use the custom code block with this code,

document.getElementById('BUTTONS-ID').focus();

replacing the BUTTONS-ID with your actual button’s id, you should end up with something like this,

image

3 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.