How To Remove The Public Or Private Radio Button In Microsoft Outlook Web App 2010

Leave a comment
Share

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 2010 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 2010 FBA logon.aspx file in the

C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\Owa\auth

folder. Make a copy of it (important if something goes wrong), and then open it in Notepad. Press F3¬†and search for the text rdo. You should see some text like this (sorry about the small font, but I don’t want to lose the formatting):

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

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:

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

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:

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

and the code for the Private button looks like this:

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

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.





Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>