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'm editing SharePoint 2010 list's Form in InfoPath 2010. Heard I can edit/add custom code via Visual Studio. Checked all buttons on ribbon but cannot find anything referencing to 'custom code' or developement

I can see 'developer' tab when start InfoPath Designer but it disapears when I open my Form (linked to SP list).

Can you please advise how can I use VS then ?

share|improve this question
add comment

1 Answer 1

Client code behind through VSTA (Visual Studio for Applications, and it is not full-pledged Visual Studio... though it is off-topic), which is accessed/created through Developer button on ribbon in Infopath Designer is not available for Sharepoint List Form type (Compatibility < Form Oprions < Info < File) of Infopath template

Check also my answer to question "Custom Code is disabled on my form/(it is a workflow form of a sp list workflow process)/ any workaround?"

Update:
In "Table 3. Comparing form library and list templates" of MSDN article

you can find it under entry "Is there support for custom code?"

Note that it is about Sharepoint List Form type of Infopath template. You can bind controls to sharepoint list(s) and engage code-behind in other types of Infopath templates.

share|improve this answer
add comment

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.