leederbyshire.com  Mobile web applications for Microsoft Exchange Server.

OWA Radio Buttons Exchange 2007

How To Remove The Public Or Private Radio Button In Microsoft Outlook Web Access 2007

Back to Articles page

Many people ask if it's possible to remove either the Public or the Private radio button option (i.e. the one that says 'This is a Public computer' or 'This is a Private computer') on the Exchange 2007 OWA Forms-Based Authentication logon page. Presumably, they don't want the user name cookie to accidentally be saved on public computer. As usual, there's no built-in way to do this, but it's possible with a fairly simple modification to the FBA page source.

First, look for the OWA 2007 FBA logon.aspx file in the C:\Program Files\Microsoft\Exchange Server\ClientAccess\Owa\auth folder. Make a copy of it (important if something goes wrong), and then open it in Notepad. Press F3 to search for text, type rdo, then Enter. You should see some text like this (sorry about the small font, but I don't want to lose the formatting):

 <td><input id="rdoPblc" type="radio" name="trusted" value="0" class="rdo" onclick="clkSec()" checked></td>
 <td><label for="rdoPblc"><%=LocalizedStrings.GetHtmlEncoded(Strings.IDs.ThisIsAPublicOrSharedComputer)%></label></td>

What you have found is the code that produces the Public radio button (which is why the input control is named "rdoPblc"). A few lines below it is the code for the Private radio button:

 <td><input id="rdoPrvt" type="radio" name="trusted" value="4" class="rdo" onclick="clkSec()"></td>
 <td><label for="rdoPrvt"><%=LocalizedStrings.GetHtmlEncoded(Strings.IDs.ThisIsAPrivateComputer)%></label></td>

The safest way to hide one of these radio buttons is to change the input type to "hidden", instead of "radio" (you should avoid simply deleting the lines, since that will cause your browser to raise scripting errors). You will also need to make sure that the remaining button has the checked attribute set. This means that if you are removing the Public button, you need to transfer it to the Private button. It also makes sense to remove the label alongside the button, too. This is most easily done with HTML comment tags (<!-- and -->), so that you can more easily undo the changes if necessary.

So, as an example, I will show how to remove the Public radio button.

The steps required are:
1. Change the input type of the rdoPblc button from "radio" to "hidden".
2. Delete its "checked" attribute, and add it to the rdoPrvt button.
3. Comment out the label for the rdoPblc button.

After the changes, the code for the Public button looks like this:

 <td><input id="rdoPblc" type="hidden" name="trusted" value="0" class="rdo" onclick="clkSec()"></td>
 <!--<td><label for="rdoPblc"><%=LocalizedStrings.GetHtmlEncoded(Strings.IDs.ThisIsAPublicOrSharedComputer)%></label></td>-->

and the code for the Private button looks like this:

 <td><input id="rdoPrvt" type="radio" name="trusted" value="4" class="rdo" onclick="clkSec()" checked></td>
 <td><label for="rdoPrvt"><%=LocalizedStrings.GetHtmlEncoded(Strings.IDs.ThisIsAPrivateComputer)%></label></td>

To remove the Private radio button, the steps are similar, except that they are performed on the rdoPrvt control, and it is not necessary to move the "checked" attribute on the rdoPblc button.

As with most of these type of modifications, you will need to check that they still function after each product update. Sometimes your modified file will be replaced by a new one from the update.

Outlook Shared Calendar For Samsung
Copyright © 2018 Lee Derbyshire. All rights reserved.