0

I'm looking if there is a way to show an already inserted record instead of returning to the list...

2 Answers 2

2

Using JavaScript you can change the URL query string Source and place the DisplayForm

http://spjsblog.com/2011/04/23/redirect-from-newform-to-dispform-or-editform/#comment-195397

2
  • I have already tryied, but when i load my EditForm without id, i get Uncaught ReferenceError: _spUserId is not defined
    – Emaborsa
    Jan 12, 2015 at 15:45
  • Ok, i arranged it. Thanx
    – Emaborsa
    Jan 13, 2015 at 7:06
0

If you are creating the dialog manually, you can use dialogReturnValueCallback (nicely described here)

Or you can add a web part to default form and using jQuery check that the save button was clicked and you can redirect wherever you want (althought you might have issues with obtaining newly created item ID).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.