Storm-Dk, it may just be that there is a tiny error in the syntax somewhere which is screwing things up.
If you look at the Tutorial Mission (I seem to be suggesting this all the time at the moment ...) in Ed Depot - Tutorials - Getting Started you will find an example of a hidden objective in operation. You can copy the briefing.htm, init.sqs and the relevant triggers into your mission and adapt them as appropriate.