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 understand that I can do this easily using the InfoPath Designer. However, I need to deploy the InfoPath form using a feature.

Once the feature is activated, the InfoPath form is shown as a content type. My question is how can I promote InfoPath fields to columns in the form library using code in feature deployment?

share|improve this question

There's no need to. SharePoint detects the promoted fields in the form automatically and makes them available in the library via the content type.

They are a special type of field that doesn't store any information itself and instead displays form values from the XPath queries associated with each field.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.