This is the follow-up post for the Using Custom Task Forms with Nintex Workflow and is an example implementation of the custom task form using dynamic loaded user controls. The way this works is that the CustomForm.aspx is called by the Nintex workflow task along with some parameters. With this a context is created containing some variables associated with the workflow. The content type name is parsed so that the correct user control is loaded. To get start with the solution, please follow these steps:
- Deploy the solution from visual studio to your SharePoint site.
- Add the workflow to a list (DemoWorkflow.nwf). Create a custom one, doesn’t matter, just so you can start the workflow on a list item.
- Edit the script (nintex.contenttype.bat) to set the correct SharePoint URL, and run it.
- Start the workflow on a list item, and check the Workflow Tasks list. If everything went right you should have a task here, and when you click it you will see the custom form show a dynamic loaded user control with a link to my wonderful blog.
You can download the solution here.
6 thoughts on “Using Custom Task Forms with Nintex Workflow – Example Solution”
Can you help me with using Nintex SDK? I am stuck at the step "Deploy your Form"..
I am having trouble because I am running SharePoint Foundation 2010 and Visual Studio 2012.. I try to Publish to site: localhost/nintexcustom with site app: SharePoint – 80 ..
It publish successfully but I cannot see any result, and I do not see the folder created in "C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATELAYOUTS". So I am stuck and unable to follow-up.
Please help, I will be very grateful.. Thank you!
Don't what the exact problem is, but for questions about the Nintex SDK you would be better off asking those questions in the Nintex forums: http://connect.nintex.com/forums/default.aspx
Great post, thanks a lot, it totally worked, you're a genius
ControlTemplate (DemoFormControl.ascx) from your sample package seems to be unfinished.. It ends with “a href tag”.
Please, could you verify that?
Thank you 🙂
The a href tag is indeed wrong, but you can safely remove it and I don’t think there’s anything more missing. The form has no function, its just loaded in an other form to display.
Thank You for your post and indeed something I have been looking for. I have another question, if we need to develop workflow with nintex (but without nintex forms license) is there any alternate approach other than creating custom content types for tasks.