Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.