Hello folks,
I was wondering if i could find some help here.
I've got a form, very simple just four boxes, which i need two to filled with diffrent values depending on the URL
These two fields are:
Name
Email
so that when the link is clicked, i need these two fields filled from the url instead of the user entering it manually on the form
I've been trying this: http://blogs.msdn.com/infopath/archive/2007/02/26/passing-data-into-a-form-input-parameters.aspx
so for example my URL is
http://irianna/_layouts/FormServer.aspx?xsnlocation=/FormServerTemplates/Autofill.xsn?name=Irianna&[email protected]&OpenIn=browser&Options=DisableSave
So that ?name=Irianna&[email protected] (Should) put
Name as Irianna
and
Email as [email protected] (not my real email so answers below please :) )
The code I've used in the is:
public void FormEvents_Loading(object sender, LoadingEventArgs e)
{
string nameValue = e.InputParameters["name"];
string emailValue = e.InputParameters["email"];
}
The but for some reason I cannot get it to work, the form still loads with blank boxes, and doesnt fill the values in.
Does anyone know how this is done, or what I'm doing wrong??
Thank you in advance.
Iri