Hide-when on web page

I am trying to find a way to hide a link on a web page based on the server name. We have 2 Domino servers clustered so that if server1 goes down server2 takes over. The problem is that I want to be able to hide some of the links on a web page on server2. Since it is a ‘fail-over’ server some of the links won’t work, therefore, I don’t want them to be displayed.

I’ve tried using ‘hide-when’ with the following formula, (and other variations), but can’t seem to get it to work:

@subset(@dbname;1)<>“server1/org1”

I’m guessing this formula must not work on the web? Anyway, is there a ‘recommended’ way of getting what I’m trying to accomplish?

Subject: Hide-when on web page

Have your tried @Name([CN];…

Try placing a field at the top of the form called servername or something like that. Use your formula, but convert it to common name. See what displays. Then, hide the field and compare that value to your server name. It should work.