SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

Can I customize the InfoPath task form which is used by the regular createTask activity?

I know I can create my own form and reference that in the elements.xml file, but I like using myForm.TaskProperties.Title = "Please upd..."; or is that also possible with a custom form (having TaskProperties)?

Basically I don't like the standard task form which gets created when using the createTask activity, so I e.g. want to delete the field "Predecessor" and delete some other fields. All I want is a task with some comment field and a "finish task" button.

share|improve this question
up vote 0 down vote accepted

Found the solution: Create your own task form and call it via CreateTaskWithContentType.

A nice explanation can be found here: CreateTask method - how to create a task based on a Custom content Type and a tutorial on how to create your own Task form inheriting form the workflow task content type: Wrangling SharePoint Workflows with Visual Studio

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.