InfoPath Using Parameters from Url

In one of my old blogposts i already covered this topic by using csharp code. This time i would like to show the same without code. The code-less option is given with Sharepoint and should also work in SharePoint Online / Office 365.

This given possibility based on using InfoPath as a browser-based form. In this form page we add a webpart which reads a parameter from url and send this one via data connection the infopath form webpart. Ok, let’s start.

I assume you have an InfoPath form, so you should open the edit form page. In the edit form page, you go on the settings icon and click “edit this page”.

After that please add a webpart.

Choose Query String (Url) Filter. You’ll find it in the Category Filters. Go on with editing the webpart.

Insert a filter Name and the Query String Parameter Name – this one is important, cause this one will be fetched from url. Default Value can be blank. Now we connect the webpart with our InfoPath form webpart.

Important here is, that you connect your param to the desired field.

After you finish and save the page, you can open the edit form or the form you customized. Now nothing happens. But if you now add the param to your url by adding “&MyValue=WorksLikeCharm” you will see the result:

Hope you like it.

The article or information provided here represents completely my own personal view & thought. It is recommended to test the content or scripts of the site in the lab, before making use in the production environment & use it completely at your own risk. The articles, scripts, suggestions or tricks published on the site are provided AS-IS with no warranties or guarantees and confers no rights.



Karsten Schneider
About Karsten Schneider 286 Articles
He is Consultant for SharePoint Solutions for collaboration, communication and business processes. He provides his customers applications based on standard features as well as development or combining the power of several microsoft tools like Dynamics CRM. In his free time he tries to collect tipps and worthy experience in this blog.

Be the first to comment

Leave a Reply

Your email address will not be published.


*