how to populate values to infopath form field by java script? - InfoPath Dev
in

InfoPath Dev

how to populate values to infopath form field by java script?

Last post 10-08-2011 08:50 PM by Don wang. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-29-2011 01:24 AM

    how to populate values to infopath form field by java script?

    Hello everyone, I wonder if anyone can help me with my issue.

    I published a infopath template to SharePoint 2010, and I need to pupolate values to infopath field by javascript.   

    I tried to modify the  g_objCurrentFormData, but the format of this array is really mess.

    I has been working on this for many days but no progress. could you please help me ?

  • 10-05-2011 09:29 AM In reply to

    Re: how to populate values to infopath form field by java script?

    Hi Don,

    ... and welcome to our forum.

    If I understand you correct you would like to pass data into an InfoPath form at load time. Is that right?

    In the following article you will find client scenarios for this task in C# as well as in Javascript.

    http://blogs.msdn.com/b/infopath/archive/2007/02/26/passing-data-into-a-form-input-parameters.aspx

    Hope that helps.

    Regards, 

    Karsten
  • 10-08-2011 08:50 PM In reply to

    Re: how to populate values to infopath form field by java script?

    Hi Karsten,

     thanks very much for your help.  yes, you understood me well, and I checked the link you provided.

    But in my case, I use a  BrowserFormWebPart in a SharePoint page to show the infopath form, not the xsn or xml, so I still do not know how to populate date to the form

    at load time.

     The BrowserFormWebPart  is under the namespace of  Microsoft.Office.InfoPath.Server.Controls.WebUI , and SharePoint uses this web part to dispaly/edit infopath form by default.

     Thanks

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.