Infopath Code
Here are some important codes for InfoPath. Get Parameters in InfoPath Form: if (e.InputParameters.ContainsKey( "SaveLocation" )) // Search for Query string (parameter) if found then set this parameter to a field. SetFormFieldValue ( "/my:ChangeOrder/my:SectionHide/my:ListURL" , e.InputParameters[ "SaveLocation" ].Substring(0, e.InputParameters[ "SaveLocation" ].LastIndexOf( "/" ))); Get Value from a field: private string GetFormFieldValue( string fieldName) { string fieldValue = string .Empty; try { XPathNavigator myNav = MainD...