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.

About Karsten Schneider 312 Articles
Consultant for Microsoft 365 Applications with a strong focus in Teams, SharePoint Online, OneDrive for Business as well as PowerPlatform with PowerApps, Flow and PowerBI. I provide Workshops for Governance & Security in Office 365 and Development of Solutions in the area of Collaboration and Teamwork based on Microsoft 365 and Azure Cloud Solutions. 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.


*