Remove/Hide/Customize InfoPath Forms Tool Tip

On your sharepoint front end servers, go to the following location C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\INC\

Make a backup copy of ifsmain.css. Then edit the ifsmain.css file as follows: Search (ctrl + F) for the css class “.errorDiv”, it is something like below:

To hide/remove tool tip: .errorDiv { z-index:100;position:absolute;top:0px;left:0px;display:none;width:300px;padding:2px 3px; border:1px solid #B22828;background:#FFFED7;color:#B22828;

font-family:Verdana; font-size:x-small; text-decoration:none;font-weight:normal;

}

Modify the above script by adding “!important” just beside display:none. The modified .errorDiv is as follows:

.errorDiv { z-index:100;position:absolute;top:0px;left:0px;display:none !important;width:300px;padding:2px 3px; border:1px solid #B22828;background:#FFFED7;color:#B22828;

font-family:Verdana; font-size:x-small; text-decoration:none;font-weight:normal; }

You can further customize the tool tips as per your needs if that is your requirement instead of hiding it.

The only drawbackwith this approach is that it will affect the complete server farm. Thus, all the infopath forms on all the sites will be affected with this change.

Update (12/1/09):

Good news is that we were able to figure out how to customize the tool tip specific to a site or page level thus avoiding the drawback mentioned in the above method of implementation. Using a content editor web part you can insert the required Html (also CSS) into a page. Leveraging this technique we were able to add a content editor web part (CEWP) to our custom application page which hosts the infopath form. This content editor web part envelopes the CSS changes required to the tool tip. Below is the CEWP content we added to our page:

<WebPartPages:ContentEditorWebPart runat=“server” __MarkupType=“xmlmarkup” WebPart=“true” __WebPartId=“{87D17157-ECD0-49D6-9906-2DAA4C400992}“> <WebPart xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns=“http://schemas.microsoft.com/WebPart/v2”> <Title>Content Editor Web Part</Title> <FrameType>None</FrameType> <Description>Use for formatted text, tables, and images.</Description> <IsIncluded>true</IsIncluded> <PartOrder>1</PartOrder> <FrameState>Normal</FrameState> <Height /> <Width /> <AllowRemove>true</AllowRemove> <AllowZoneChange>true</AllowZoneChange> <AllowMinimize>true</AllowMinimize> <AllowConnect>true</AllowConnect> <AllowEdit>true</AllowEdit> <AllowHide>true</AllowHide> <IsVisible>true</IsVisible> <DetailLink /> <HelpLink /> <HelpMode>Modeless</HelpMode> <Dir>Default</Dir> <PartImageSmall /> <MissingAssembly>Cannot import this Web Part.</MissingAssembly> <PartImageLarge>/_layouts/images/mscontl.gif</PartImageLarge> <IsIncludedFilter /> <ExportControlledProperties>true</ExportControlledProperties> <ConnectionID>00000000-0000-0000-0000-000000000000</ConnectionID> <ID>g_87d17157_ecd0_49d6_9906_2daa4c400992</ID> <ContentLink xmlns=“http://schemas.microsoft.com/WebPart/v2/ContentEditor” /> <Content xmlns=“http://schemas.microsoft.com/WebPart/v2/ContentEditor”><![CDATA[<style type=“text/css”> .errorDiv { z-index:100;position:absolute;top:0px;left:0px;display:none;width:200px;padding:2px 3px;border:1px solid #B22828;background:#FFFED7;color:#B22828;font-family:Arial; font-size:xx-small; text-decoration:none;font-weight:normal; } .errorDivClickable { z-index:100;position:absolute;top:0px;left:0px;display:none;width:300px;padding:2px 3px; border:1px solid #B22828;background:#FFFED7;color:#B22828; font-family:Arial; font-size:xx-small; cursor:pointer;cursor:hand;font-weight:normal; } </style>]]></Content> <PartStorage xmlns=“http://schemas.microsoft.com/WebPart/v2/ContentEditor” /> </WebPart> </WebPartPages:ContentEditorWebPart>

About the author

I work with customers helping them achieve more using Microsoft Technologies. I am in my 9th year with Microsoft as of March 2020. I get to work with really smart people (both at Microsoft and Customers). Helping customers, removing any blockers, rapid prototyping is my core work.