Redirect to display view
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Okay, is there anything in the console after redirection? If you include the code, does the console give you any errors?
Also, please send a full screenshot of your JavaScript editor, so the last part of the code is also visible. You can change size of the JavaScript editor just like other windows.
Also, please send a full screenshot of your JavaScript editor, so the last part of the code is also visible. You can change size of the JavaScript editor just like other windows.
Cheers
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Alright, let's try something else. Try running this code from JavaScript editor and tell me if you get the result:
This will only work for Edit Form! For the New Form, you'll need to use the previous one.
Code: Select all
fd.onsubmit(function (){
$("#aspnetForm").attr('action',location.pathname.replace('Edit', 'Display') + '?ID=' + fd.getUrlParam(window.location.href, 'ID'));
return true;
});
Cheers
-
- Posts: 10
- Joined: Mon Sep 25, 2017
Ugh, I spoke to soon. I just realized that when you click save, it redirects to the display form, BUT it doesn't save any of the changes made...
-
- Posts: 10
- Joined: Mon Sep 25, 2017
Ok, so I started searching again and I found the following which seems to work:
Code: Select all
fd.onsubmit(function() {
fd.sourceFormParam('fd_Item_DisplayForm.aspx?ID=' + GetUrlKeyValue('ID'));
return true;
});
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Hello, James!
Okay, glad it works now! And thank you for testing this, it'll be very useful in the future. Sorry for all the delay!
Okay, glad it works now! And thank you for testing this, it'll be very useful in the future. Sorry for all the delay!
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests