Automatically open a widget

Automatically open a widget

How do I make a widget open automatically if a user views any record from a specific module?