1

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?

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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