JHMorris

On a browser enabled form, when you have the data option for a control "Cannot be blank" selected, when you hover over the control on the browser, there is a screen tip saying "Cannot be blank" that shows up immediately.

Is there a way to turn this off or to customize it It is very annoying to our users.

Any info is appreciated.

Thanks.



Re: SharePoint - InfoPath Forms Services Turn Off Hover Over Screen Tips on Browser form

Dave Chong

Hey there,

I was also inquiring about the same thing. Our company has a Microsoft Premier support account so I submitted a case on how to disable the browser tooltips. Their response was that there is no setting to disable these tooltips. A change request was put in to request control over these tooltips either to hide/show them or control the display size, ect. There is no guarantee that MS will do anything about this.

We are living with the same annoyance.

Dave





Re: SharePoint - InfoPath Forms Services Turn Off Hover Over Screen Tips on Browser form

JHMorris

Thanks for the info, Dave.

Our company also has a premier account. Maybe if they get enough requests, they'll actually do something about it.

Thanks again.





Re: SharePoint - InfoPath Forms Services Turn Off Hover Over Screen Tips on Browser form

Dave Chong

Hi JH,

I don't know if you can access my case number on the Premier site, but here is my case info.

Support Request ID SRX070404603451

Problem title: InfoPath - Disable Tool Tips Required
Product: InfoPath 2007
Sent on: 4/4/2007 11:58:13 PM
Last modified: 4/9/2007 8:32:07 PM
Status: Resolved
Type: Contract
Severity: B - Urgent
Current action:
Customer name: Dave Chong





Re: SharePoint - InfoPath Forms Services Turn Off Hover Over Screen Tips on Browser form

Brian Abram

There's no way, at least what I've seen, to turn off the tooltip popups for controls which are "required", but there is a way to turn them off for Data Validation cases:

To do so, you'll need to edit the manifest.xsf file with a text editor. You'll see something like the following:

<xsf:errorCondition match="/my:Fields" expressionContext="my:Item" expression=". = &quot;&quot;">
<xsf:errorMessage type="modeless" shortMessage="Cannot be blank"></xsf:errorMessage>
</xsf:errorCondition>

Change the shortMessage to "" (you need to leave the attribute in, though) and the error message won't appear. I turned off "required" for all my components and created custom Data Validation rules instead. Once I removed the shortMessage, everything worked fine.

Tip: Change the message within InfoPath to something like $$$$$, then do a find/replace to replace $$$$$ with nothing.

Hope this helps





Re: SharePoint - InfoPath Forms Services Turn Off Hover Over Screen Tips on Browser form

JHMorris

Brain...

You're a life saver. This works great. I appreciate the info.





Re: SharePoint - InfoPath Forms Services Turn Off Hover Over Screen Tips on Browser form

Dave Chong

Brian,

Your workaround does get rid of the tooltip, but I also noticed that it gets rid of the red asterisk that indicates a required field. You will still get warnings if the field is blank, but only after the user submits the form. The late notification of the required field is the trade off for the annoying tooltip.

Dave





Re: SharePoint - InfoPath Forms Services Turn Off Hover Over Screen Tips on Browser form

Brian Abram

I noticed this issue as well. Indeed my workaround above does not solve this problem. Custom Data Validation with a blank message will not display the red asterisk inside the control by default any longer. So, yes, you have a tradeoff and it depends on what is needed. We should only hope that a future version of InfoPath and Forms Server will include this functionality.



Re: SharePoint - InfoPath Forms Services Turn Off Hover Over Screen Tips on Browser form

JHMorris

Well, we have put this work around in place and we still see the red asterisks for the required fields.

Not sure why you don't see them.

Email me direct at james.h.morris@lesschwab.com for more information or if you want to get into more detail about this issue.

Thanks,





Re: SharePoint - InfoPath Forms Services Turn Off Hover Over Screen Tips on Browser form

Dave Chong

Brian,

thanks for sharing your findings. Perhaps there are some other factors involved since James seems to have success with your workaround. I'll compare notes with him to see why his form works.

Dave





Re: SharePoint - InfoPath Forms Services Turn Off Hover Over Screen Tips on Browser form

Dave Chong

Ok, with James help I have success.

The key here is to ensure the validator's message parameter contains some sort of message. Don't worry it never shows as James has noted in step 5.

Here is a modified list of steps James provided to get this to work.

Here are the details:

1... Made sure the property "Cannot be blank" was NOT checked for each of the required fields.
2... Opened the Data Validation window to create my own custom validator.
3... Created a validator for a field with the property "is blank".
4... For the screen tip on the validator, I entered "$$$$" only to make it easy to find in the manifest.
5... Entered a generic error message in the message box. (NOTE: We found that this message, even though it shows in the manifest, does not show anywhere. Even when the error appears when submitting the form. The error message box does not list the actual message.)
6... Do NOT check the box to show the message immediately.
7... Repeated steps 1-6 for all required fields.
8... Save the form.
9... Edit the manifest for the form and removed the "$$$$", changing it to "" and save the manifest.
10...Publish to a network location and pushed the form to it's final resting spot on our SharePoint 2007 server.

Note: There is a drawback If the form is run in the InfoPath client, a tooltip will appear for each required field with the message "Unspecified data validation error." For web forms, however, the lack of tooltips appearing and interfering with input is much better.

I hope this workaround helps others in this situation.

thanks to Brian and James for their input.

Dave





Re: SharePoint - InfoPath Forms Services Turn Off Hover Over Screen Tips on Browser form

Dave Chong

Hey guys,

I just found one more possible drawback to this solution. Removing the "Cannot be blank" property on the field control apparently turns off the Cannot be blank property of the field (data source tab). This means we only have validation at the presentation layer and not at the schema level. When we look at our fields in the data source it is no longer apparent which fields are required. It forces us to look at the properties on the form's control to see weither or not its required. The workaround will produce a form that works the way we want but it could lead to maintainance headaches down the road. Before using this workaround just be aware of this fact.

Dave





Re: SharePoint - InfoPath Forms Services Turn Off Hover Over Screen Tips on Browser form

Brian Abram

I believe you can also get the red asterisk to appear if you add a message to the errorMessage element. So you'll be removing the shortMessage all together and adding the message to the errorMessage element itself. I don't know if this message ever appears, though; the existence of content there causes InfoPath to add the red asterisk in the appropriate place.

Code Snippet

<xsf:errorCondition match="/my:Fields" expressionContext="my:Item" expression=". = &quot;&quot;">

<xsf:errorMessage type="modeless" shortMessage="">Cannot be blank</xsf:errorMessage>

</xsf:errorCondition>





Re: SharePoint - InfoPath Forms Services Turn Off Hover Over Screen Tips on Browser form

JochenLeitner

after modifying the manifest.xsf i have to publish this file to a sharepoint server and not the template.xsn. is that right

thanks!





Re: SharePoint - InfoPath Forms Services Turn Off Hover Over Screen Tips on Browser form

Simon Doy

You could modify the infopath form server css file to make the dialog smaller.

I havent got the code to hand at the moment. But have a look a css file in the 12 hive it starts with ifs*.css if my memory serves me right.

The elements you are looking for are errordiv i think.

You can then change the font size to xxsmall and then its not quite so obtrusive.

Regards

Simon