-
Yes it is possible to Hide/Disable a control through Scripting.
Here are the steps
First write a method that returns a boolean value in your script.
For ex:
function isValid()
{
return true;
}
Now go to Infopath form Double click on the control that you want to make conditionally visible/disable
- Go to Display tab
- Click on Conditional ...
-
Hello liuqian,
You need to cast the secondary data source dom as an IXMLDOMDocument2 before you setProperty on it. Your code would look something like this in VS2003
domCustomersUSA = (IXMLDOMDocument2)thisXDocument.GetDOM(''Customers ...