Dynamic callback function setup inside an existing callback function

A post was split to a new topic: Toggle the visibility before the main callback is triggered - Dash Tabs