Switch tabs in lock widget

I have a requirement where I need to switch to the signup tab when the user clicks a button. I’m adding the button directly in the HTML (because of requirement).

I thought calling lock.show({ initialScreen: ... }) would do it but it looks like this works on the initial call only.

Is there a way to achieve this?

Hey there!

Have you had a chance to check other community topics on that front that can guide you?

Hey!

All the topics I’ve looked through show how to set the default tab. In my case, I want to change the tab when the user clicks a button.