Hide block in insert mode

Hi,
How can a hide a entire block in insert mode?

I have code to show or hide a block, but is there an event in this case?

thanks in advance

regards

onscriptinit

if(sc_btn_insert){
    sc_block_display('name','off')
}

Check manual for the exact syntax of the used macro’s