Category Archives: Infopath

InfoPath: Conditionally Hide Hyperlink Control

You may have been to a situation where you have to conditionally hide the hyperlink control but unlike many other InfoPath controls, hyperlink controls does not support conditions. But there is a way to hide this control. 🙂 Here is my main data source. IsVisible is a boolean field and Hyperlink is a string storing… Read More »

InfoPath: A proper way to blank out Whole Number, Date using JScript

Problem When you blank out data in InfoPath using JScript, you would probably use the following method. XDocument.DOM.selectSingleNode("my:xpath/my:node").text = ""; Above code works well when “my:node” is of data type String. If the data type is Number or Date, above code will work but on the user interface you will see an error “Only integers… Read More »

InfoPath Hyperlink Control: Show Hyperlink Based on Filtered Data

In InfoPath, Hyperlink control does not support filtering data when you select a field for repeating group. But you can definitely avert this limitation using a trick. For example, I have secondary data source “Data” as xml file with the following content < ?xml version="1.0" encoding="utf-8" ?> <settings> <setting Name="Users" Value="2"></setting> <setting Name="WebAddress" Value=""></setting> </settings>… Read More »

Error while installing InfoPath toolkit for Visual Studio

Error Description: “Setup cannot detect the required version of Visual Stdio .NET onthis computer. Before you install this product, you must install a matching regional language version of Visual Studio .NET 2003,Visual Basic .NET 2003, or Visual C# .NET 2003.” Check out the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\Setup\VS\BuildNumber\1033 If this key is not available the installation will… Read More »

Subtract Time in Infopath

Infopath is a great tool for rapidly developing an application which gathers information from the user. Many times these applications uses start time and end time as their fields. Infopath has a “Time” datatype. We can directly assign this datatype to the fields. You can compare two fields of this datatype but substraction of fields… Read More »