-
What's the pattern you're using, specifically?
-
Yeah, I know that. Did you try my suggestion?
-
I'd suggest using a Calculated Value control for the "This is for sophomores only" and "This is for seniors only" text. Once those are added to the form, just add formatting rules to them to hide the first one when PrincipalOfficeOption is not equal to VerificationofResidency, and hide the second one when it's not ...
-
How about hiding the ValuePerUnit field on the condition ValuePerUnit = "NaN"?
Another option would be to use the default value formula TotalLand / (TotalUnits + (TotalUnits = 0)) which should result in a value of 0 if TotalLand and TotalUnits are both 0.
-
There are no textbox click events in InfoPath, but you can use the Context Changed event to detect when focus has moved from one control to another.
-
I presume you'd be able to get around this by changing the condition to:
Field does not match pattern AND
Field is not blank
-
Why not just have the code show a message box?
MessageBox.Show(value);
-
Most of these functions are available in InfoPath, just in slightly different manifestations:
CONCATENATE(a, b, c) -> concat(a, b, c)
INT(a) -> floor(a)
MOD(a, b) -> a mod b
Zero padding is a bit trickier, but this should work for zero-padding a number to 2 digits:
substring(a + 100, 2, 2)
-
How about this:
http://www.infopathdev.com/blogs/greg/archive/2005/06/08/Create-a-Picture-Button.aspx
-
Why do you not want to use the XML file trick? Are you working with a browser form?