SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an infopath form applied to a Form Library in my sharepoint site which have managed code. In that form I use a Multiple-Selection list in a section that shows items (documents) from a Sharepoint Document library through REST service. When I check the document item in the Multiple-Selection list, the changed event (XmlChangedEventHandler) in the managed code manipulated the item checked. Here is the Code:

 public void Documents_Changed(object sender, XmlEventArgs e)
    string docId = e.Site.Value;

Everything works fine in InfoPath form preview, but when I pubished that to the sharepoint form library, I am not able to get the value for docId. The "e.Site.Value" is getting null.

Can anyone suggest a solution for this?

share|improve this question
Myself found a work around for this. Avoided relying on the e.Site.Value and brought a new Button under the the Multiple-Selection list. Thus handled my business case. But I am still looking for a good answer for this question – Jobin Jul 22 '13 at 14:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.