Saturday, February 2, 2013

Hide Tooltips in Infopath Browser Forms

On a browser enabled Infopath form, when the “Cannot be blank” data option is selected, on hover over the control the tooltip shows up. This tooltip gets really annoying to some users , especially when they have to fill a form with lots of fields.

                                      

One option is to change the css class “.errorDiv” in “ifsmain.css” available in the location “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\INC\”.However this has a major drawback ,it will affect the complete farm.
 So to overcome this drawback, follow the steps mentioned below so the changes affect only the particular form.

 1. Export the source files of your Infopath form and close the Infopath designer to release the lock it applies on your form files.

                                     

 2. Open the view .xsl file (in this example view1.xsl)

                                     

3. Add the following code just above the "</body>" element and save the file.

          <style title="myCustomStyleSheet" type="text/css">
              .errorDiv{display:none !important;}
          </style>

                                             

 4. Reopen your form template by right-clicking the manifest.xsf file and choosing "Design" and then publish the form template.

                                           

 5. Ta-da, no more annoying tooltip.

                                         

6 comments:

  1. It works!!! Thanks a lot

    ReplyDelete
  2. Thanks for much for this article, it's worked wonders for me :) I'm trying to remove the dotted red border around my radio buttons on a required control. Do you know how to do that?

    ReplyDelete
  3. Thanks! End Users can be quite picky huh?
    This helped!

    ReplyDelete
  4. u're even better than the MS guys!! haha!!
    Thanks a tonne!

    i was playing with the spd 2010 infopath web part properties.
    under "behaviour", there's this row item called "tooltip".
    I tried "false", "none", "0".. it all didn't work in removing the annoying tool tip.
    but i wonder if it could be done from there...

    another person take over from me will have zero idea what was changed in the infopath code unfortunately.

    ReplyDelete