locked
Data Form Web Part - Links don't return to previous page RRS feed

  • Question

  • I have a Data Form Web Part set up where the 'title' column in the list is a hyperlink. 

    When a user clicks on the title it sends them to the display form for the record.  so far so good.

    But when they close the record, instead of returning them to the page that they came from, itk

     sends them to the default view for the list (in this case, it is 'all items'). 

    Presently, in the edit hyperlink box of the DFWP, the hyperlink address is: 

                /{@FileDirRef}/Dispform.aspx?ID={@ID}

    How can I correct this?  I don't know if I need to modify the address displayed in the hyperlink box or if there is a setting elsewhere that will fix this.

     


    tracy
    Friday, November 18, 2011 12:40 PM

Answers

  • to return on close or submit of the form you can put this at the end of your hyperlink

    &Source=http://mysite.url.com

    take a peek at an ootb display form, you'll see the url has the Source parameter.


    -tom daly
    • Proposed as answer by RobinTed Monday, November 21, 2011 10:11 AM
    • Marked as answer by Steven AndrewsEditor Tuesday, November 22, 2011 4:34 PM
    Saturday, November 19, 2011 5:11 AM

All replies

  • to return on close or submit of the form you can put this at the end of your hyperlink

    &Source=http://mysite.url.com

    take a peek at an ootb display form, you'll see the url has the Source parameter.


    -tom daly
    • Proposed as answer by RobinTed Monday, November 21, 2011 10:11 AM
    • Marked as answer by Steven AndrewsEditor Tuesday, November 22, 2011 4:34 PM
    Saturday, November 19, 2011 5:11 AM
  • Oh, Happy Day!

    Thank you so much.  I knew it was something simple but I just couldn't seem to locate it.   This is a big help!

     

    tsf


    tracy
    Monday, November 21, 2011 12:40 PM