content type display/edit forms in SPD for workflows RRS feed

  • Question

  • Hi,

    we migrated sharepoint sites using database attach detach method. And have a workflow along with that. I have clicked ok for "Auto generate to xsn".

    after upgrading, there are several issue compared to designing a new workflow from scratch. One of them was the content type form urls were all empty having the text "click here to enter text".

    1. I changed the display form url to "lists/listname/displayform.aspx"

    2. Clicked on push changes to site and list before and after saving the content type

    now, i go back to the site, click on the task form. It only opens the edit form..  I donot find this issue while deisgning a new workflow.

    is there any way to set this url at any other place for this task form content type?? like in the xoml.xml.

    Please help me on this.


    Friday, June 15, 2012 7:46 PM

All replies

  • Answer: :)

    "Push changes" button acts like a check box. select on that, save the form and refresh... all the details are saved to the list content types as well..

    need to confirm on one thing..

    the workflow task edit forms, throw an error if i manually go and create a task in the list with that content type. since they bind with the workflow.. is it a default behaviour ?

    Saturday, June 16, 2012 3:56 PM
  • Hi ,

    When you create a SharePoint Designer workflow which have an action to create a task , a correaponding content type will be created after publihsh the workflow .The content type is added to the Tasks list .You can create a new Task using the content type ,but when you edit the task there will be an unexpected error .This is beacuse the EditForm and DispForm set for the content type is _layouts/WrkTaskIP.aspx .This page is used in a workflow and when you use it for manually created tasks ,it will throw an error just like you says .


    Entan Ming

    TechNet Community Support

    Monday, June 18, 2012 9:17 AM
  • Thanks a lot for that confirmation !!

    I have a new issue now. the content type view form shows a value of my field as "ID" where as the edit form shows the corresponding value.

    this field was created as a single line of text in the collect dat from user activity. I created a data connection. changed this control to drop down list and mapped to the field. i had to select "id and title". If i slect title and title , getting a coercion error.

    i need to display the value rather than the id in this view form. any ideaS?

    Monday, June 18, 2012 4:17 PM
  • Hi ,

    Can you describe the detailed steps that  you take to customize the workflow ?I can change the Single line of text field to a drop down and show Title instead of ID .Here are the detailed steps:

    1. Create a list workflow in SharePoint Designer .Add an action ‘Collect data from user ’ .
    2. Add a single line of text column in the collect data action .
    3. Publish the workflow and open the New Task_x0028_9_x0029.xsn in InfoPath Designer to edit the task form .
    4. Right click on the text box control and choose Change Control >Drop Down list box .
    5. Set the drop down list box to get value from an external data source .Add a data connection to the list where you want to get the value .
    6. In the Values and Display Name column choose d:Title .
    7. Publish the form back to SharePoint Designer .

    Entan Ming

    TechNet Community Support

    Wednesday, June 20, 2012 3:54 AM
  • Hi Entan,

    Eactly the same steps. Except for step 6, where I select Value as "ID" and Display name as "Title". In this case, display form shows the ID and  edit form am shows the value.

    I need the ID field because, I need to update this value back to the list where the workflow is running. And that field is a lookup in that list.

    Hope am clear. Please verify with the above change.

    Wednesday, June 20, 2012 7:58 AM
  • Hi ,

    When set the Value as d:ID and set the Display Name as d:Title ,the column will show Title as values no matter on edit form or display form .


    Entan Ming

    TechNet Community Support

    Wednesday, June 20, 2012 8:31 AM
  • Hi Entan,

    Am sure am getting the value in the display form and the title in the edit form. Please see below.

    I m using Dispform.aspx for view form and my custom task form for editing. I created colour as a look up column. display form shows 7 below and edit form shows the value.

    • Edited by meena.v Thursday, June 21, 2012 6:03 AM changed the picture
    Thursday, June 21, 2012 5:56 AM