Category Archives: Infopath

InfoPath: Hide command text for conditionally inserting row in repeating table

Problem 1 Allow the users to insert a row in repeating table based on condition evaluation. Solution Select the repeating table, right click on it to open up context menu. Click on “Repeating Table Properties…” > “Display Tab” > “Conditional Formatting…” button. It will open up “Conditional Formatting” dialog. Click on “Add…” to open up […]


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 […]


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. 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 allowed.” and “Only […]


InfoPath Error: Reference to undeclared namespace prefix “dfs”

Error If you are trying to get/set values using XPath on Secondary Data Source, you might get the error “Reference to undeclared namespace prefix: dfs”. Cause When you are trying to use XPath expression on Secondary Data Source, you must have to declare the namespace that is going to be used in the code. By […]


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 Now I want to get a hyperlink out of “Value” attribute of “Setting” […]


Error While Installing InfoPath Toolkit for Visual Studio

Error Description: 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 not succeed. Solution of this problem is to reinstall/repair the Visual Studio and get this key.


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 subtraction of fields […]