Very strange. If you have time can you generate a very simple form (2 or 3 text boxes) that repros this problem and attach to your reply here? I'd like to play with it, and see if I can make it happen here. If I can, I may be able to figure out why its happening.
--
Greg Collins [InfoPath MVP]
Please visit:
http://www.InfoPathDev.com
StefanO-nl said:
I know you said it happens randomly, but if it is possible to provide steps to cause this to happen consistently, that would help.
Ok, when they disappear, it seems to be in the following (or a?) scenario filling out a published fully trusted form (SP1):
- I fill a textbox with an invalid value (either invalid because of the schema or invalid because of a rule I defined, that doesn't seem to matter).
- I leave the textbox (e.g. by tabbing to the next textbox or clicking the mouse at a random spot on the form) and the red dashed lines are visible (also visible now around other textboxes that have invalid values) as expected.
- I tab to the next textbox or I move my mouse over a textbox and the red lines disappear.
- I return to the invalid textbox (either by tabbing back or clicking the mouse) and the red lines reappear.
- I tab to the next textbox or I move my mouse over a textbox and the red lines disappear.
- I return to the invalid textbox (either by tabbing back or clicking the mouse) and the red lines do not reappear.
- The red lines don't reappear until I go to a textbox that I didn't enter before, but after tabbing to another (random) textbox or just moving my mouse, they disappear again.
- Go back to the first step, but now the red lines only reappear when I fill in an other invalid value (e.g. changing "a" to "b" in an integer field).
I'm using context sensitive help as described at
http://blogs.msdn.com/philoj/archive/2004/04/25/119926.aspx
(but when I comment out the code in the OnContextChange-event the red dashed lines still disappear)