Question

I have a question as follows:

I need a SharePoint URL that contain something like this:

http://sharepoint.com/subsite/feedback.aspx?name="Mary Rose"

whereby the URL contain a variable called "Mary Rose".

Once a person click on the URL, it will display a either web-based infopath form or the InfoPath form as follows:

=======================================================
|   Name:     |    Mary Rose                          |
=======================================================
|                                                     |
| Please enter your comments below:                   |
|                                                     |
|                                                     |
|                                                     |
=======================================================

If the URL variable is feedback.aspx?name="Wendy Wonder"

It will display the name accordingly.

Anyone know how should I go about it?

OTHER TIPS

Are you using Sharepoint workflow to accomplish the logical flow of the form? If so, you could use User fields to establish where the email needs to go to and also promote the "Requestor" and "Receiver" users as sharepoint fields (within the list).

So in other words, the workflow will work as follow:

  1. Upon initial creation of the form, the requestor selects a receiver (using a people picker). The receiver and requester names are saved as form fields within infopath.(and subsequently also saved to sharepiont list so that the workflow can use it)

  2. Email gets sent to receiver. Receiver opens and approves/declines the form.

  3. Email goes back to Requestor who will then review and add comments (data also saved in form and sharepoint list)

  4. End Workflow.

In your scenario, you really do not need to use Query String Parameters. The actual variables (user names etc.) can all be saved within the form.

I suggest you look at this example which shows off a lof ot features within Infopath and workflow in Sharepoint: http://sharepointmagazine.net/articles/a-tribute-to-the-humble-leave-form

The above example also uses Requestor and Approvers

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top