.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Append Querystring Value on Hyperlink in InfoPath

Posted By:      Posted Date: September 20, 2010    Points: 0   Category :SharePoint

I have a custom InfoPath edit form for a SharePoint 2010 list.  What I would like to do is include a hyperlink within the form that points to some other page, appending a querystring variable value that pulls the value from one of the fields of the SharePoint list.  So if the user edits item 1, the url would point to "http://site/page.aspx?value=1", and if they edit item 2 the url would point to "http://site/page.aspx?value=2".

I can't seem to do that with the Hyperlink control in InfoPath.  I was thinking of maybe using a calculated column in the SharePoint list that contains the URL with the querystring value already appended and then use that as the source for the hyperlink.  Haven't tried that yet.  Any other ideas?  I'm not an InfoPath guy so hopefully I'm missing something easy.


View Complete Post

More Related Resource Links

Hyperlink button with file browse on infopath



We need to have a button on our Infopath Web Form that will prompt the user to browse for a file and this would add a link to the selected document.

We don't want to attach a file since the file is already someware on the Sharepoint site. The "Insert Hyperlink" control is out of the question, we don't want users to cut and paste the URL. We can't refer to a list to create a dropdown of the files since it can be on several lists.

I don't mind doing code behind, custom controls, rules or anything that can acheive this. I already have plenty of coding in the form anyway.

Thanks for any help.

TextBox value into a hyperlink querystring


How can I get the value of a textbox in the navigationURl of a hyperlink to use as a querystring value?

<asp:HyperLink ID="hlPrint" runat="server" Target="_blank" NavigateUrl="../Entry/Print.aspx?cLIENTID=" & txtCLIENTID.Text & "
                            Text="Print List"></asp:HyperLink> 

Include a static hyperlink in infopath form mail message



i know i can add a hyperlink in an infopath form. but can this be done in an email message?

i want to submit a form using email. but i dont want the form to be attached to the mail. instead i want to use the hypelink.

can i do this?

InfoPath Filler - Hyperlink via datasource issue - always reverting to http://address/



I am trying to design an InfoPath Filler 2010 form (form based on a SharePoint List) and I want to create a dynamic URL based on another field in the form.

When I place an image on the form and create the hyperlink from it, I get the option to choose a data source.

I do this, but as soon as I click ok and publish the form, the formula is lost and it defaults to http://address/

Has anybody else experienced this? and if so, did you find a workaround to create a dynamic URL?

Kind Regards


Giles Hamson MCTS, MCITP SharePoint 2010 | Blog: http://ghamson.wordpress.com | Twitter: @ghamson

InfoPath 2010 cannot connect to SharePoint 2010

You have installed Office 2010 beta and you are trying to connect to SharePoint 2010 from InfoPath but you get an error

Arabic QueryString with Url Rewrite Solution


Alsalamo 3alaykom ,

as we know that if you use Intelligencia.UrlRewriter.RewriterHttpModule or IIS URL Rewriting , we will face problems with arabic urls

as this

http://localhost:1234/Pages/???? ?????? ?????? ??????????

and the Rule is :

<rewrite url="~/Pages/(.+)" to="~/ShowPages.aspx?Page=$1" />

you will recive the QueryString["Page"] Like this

نائب العميد للشؤون الأكاديمية

so it's a big problem , and there is a solution that is :

remove the Rule of that rewriting ,,

<rewrite url="~/Pages/(.+)" to="~/ShowPages.aspx?Page=$1" />

then open your Global.asax file and Application_BeginRequest method exactly

use the following code to handle you request

void Application_BeginRequest(object sender, EventArgs e)
if (HttpContext.Current.Request.Url.ToString().Contains("/Pages/"))
	String[] txt= Regex.Split(HttpContext.Current.Request.Url.ToString(), @"/");
	String page = txt[txt.Length-1];

Restrict Hyperlink


Hello All Experts,

I have made one matrix report, in which i have taken one column group named as "Branch".
It will display dynamically all the branches. Now in that column group i have added two sub column
as "PO", "SO". In column "PO" i have given link of anther report with the paramtere also.

Now there is a hyperlink in PO column which is display for all the branches, i want that the hyperlink should be there for only branch name "AHD", for other branches there should not be any hyperlink to go another report.

Is this possible? if yes then how can we do this?


InfoPath 2007: Designing Form Templates With The New Features Of InfoPath


InfoPath 2007 is an XML forms designer and editor, and a fully featured and integrated member of the Office family. This article takes a sneak peek at some of its new features.

Scott Roberts and Hagen Green

MSDN Magazine August 2006

Inside MSDN: Using InfoPath as a Reporting Solution


I love the part of my job that lets me write code and develop software. In addition to those responsibilities, however, I manage a development organization that's working on a number of large strategic projects.

Larry W. Jordan Jr.

MSDN Magazine March 2005

InfoPath: Turn User Input into XML with Custom Forms Using Office InfoPath 2003


Office InfoPath 2003 is a new Microsoft Office product that lets you design your own data collection forms that, when submitted, turn the user-entered data into XML for any XML-supporting process to use. With an InfoPath solution in place, you can convert all those commonly used paper forms into Microsoft Office-based forms and end the cycle of handwriting and reentering data into your systems. Today organizations are beginning to realize the value of the mountains of data they collect every day, how hard it is to access it, and are striving to mine it effectively. InfoPath will aid in the design of effective data collection systems. Here the author shows you how to get started.

Aaron Skonnard

MSDN Magazine September 2003

How To display image in GridView as hyperlink


Hello Everyone 

Could someone please help me with a little issue....

I was able to save the image in the database as binary....... but now i don´t know how to display it in the GridView as a hyperlink.

I´ve read something about ImageField..... I´d appreciate any help .


Infopath and Section 508 Accessibility


Hey, guys! I'm building a web site for a Section 508 workgroup, and I need the site to be 100% accessible (including the administration module I'm making for the team. We're using SharePoint MOSS 2007 and I recommended using infopath to enter data into the site's database (and also to populate downloadable Microsoft Word documents). The customer claimed that InfoPath is not Section 508 compliant, which seemed odd to me because the forms can be modified to anything you want them to be (including 508 compliant).

I even found this guide to making InfoPath accessible:


I'm curious if there are any caveats to making accessible forms in Infopath, or if the information I've gathered is incorrect.



Proper setup using Infopath and Custom Workflow using VS 2008



I have been struggling for a couple of days, trying to set up a decent
structure for an Infopath project using a custom workflow using Visual Studio 2008.

I had a solution with two projects:

1) Sharepoint 2007 Workflow

2) Infopath 2007 form w/code-behind.

I included the xsn, in the VS solution, but after a day or two,
something went wrong, and I lost some work. I still do not know what
happened, but I could not get my changes to persist afterthat  Doing research I have read that this
stucture, using Infopath xsn, within VS does not work correctly with Source
Control. I am using VSS.

So I since made a change to the set-up so that the .xsn (form template) is separate from
Visual Studio. However, I need to leave the code-behind in VS, since I need to debug

This is my latest problem. I have been unable to attach to the correct
process, as VS generates cachse files, and who knows what else.

My question is simple. What is the supported method for debugging InfoPath
code/behind, which uses a Sharepiont Workflow?

I just also want to say that one should not have
to spend a few days just trying to setup a working development environment.

This should be trouble-free, but it is far from being so. I

Using Infopath form fieldnames in a workflow fails



I designed a form in Infopath and I published it on a SP2007 server to use in a workflow in a library. That goes fine. In the workflow I send an email message. I can use the fields from my Infopath form in the message that I create. 
If the workfow is starts, Shrepoints sends me the message. But it does not use the fields from my InfoPtah form in the message in stead I see questionmarks.

Why doesn't it show the fields?

I alse saw (maybe this makes it clear) that when I let it dipslay the URL in the message, it show: http://1.portal.lucasonderwijs, but the actual site is whithout the "1" and it should also start with https://

Has anyone seen this before?

Thank you,


InfoPath Workflow Task Form "Loading" event handler only being called after App Pool recycled.


I have a Workflow that is using an InfoPath task form.  In the "FormEvents_Loading" method event handler I have some code that needs to run each time the form is opened.   I recycle the App Pool and open the form the code runs perfectly, but if I close and try to re-open the form the code is not run at all.  I can then recycle the App Pool again and on the next load the code executes just fine.   The code that is supposed to be run is a very simple statement to set a field value, so I don't think it is interfering.

Does anyone know what this might be?


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend