locked
Passing querystring parameters to InfoPath Filler form RRS feed

  • Question

  • Hi,

    Is there a solution to pass parameter to Info Path Filler form to get Parameters from link.

    Many thanks in advance for your reply

    Thanks,

    Abul

    Sunday, January 26, 2014 9:44 AM

Answers

  • Hi Abul,

    Presumably you have an InfoPath client based (i.e. no browser based) form that you want to open and pass parameters to.  If this is the case then yes, this is possible.

    I've achieved this before by specfying the parameters after the URL - e.g.

    http://intranet.contoso.com/LeaveRequest.xsn?type=1

    Then you have to use managed code to extract the parameters from the form loading event such as:

    public void FormEvents_Loading(object sender, LoadingEventArgs e)

    {

       string typeValue = e.InputParameters["type"];

       //do something with it

    }

    If you could use browser based forms it would be easier as you can use the Query parameter filter with the InfoPath form web part. Though with client side (filler) forms then you'll need to adopt an approach based on the above.

    - Mark

    Monday, January 27, 2014 7:47 AM