How can i know if a form is visible or invisible with api