Need help with redirection after clicking on the list item to Display a Form. I need the people to be immediately redirected to Edit Form.
Here is the code - when I log the URL to the console, it works, but when I open the list item in Display Form, it won't do anything. It does not redirect me.
var listId = fd.spFormCtx.ListAttributes.Id;
var itemId = result.itemId;
//replace "https://domain.sharepoint.com/sites/sitename/subsite" with path to your site
//PageType=6 means Edit Form
+ listId + "&ID=" + itemId;
Thank you for your help.