SPRedirectWithID from subfolder

Apr 8, 2011 at 1:15 PM

Hi Marc,

Im currently using the SPRedirectWithID from my newform and chain to the editform. it works when i enter the newform from the allitems page, but if i enter a subfolder, a click on newform, after saving it does not redirect to the editform. Please help maybe im missing something. see my code below.

$(document).ready(function() {
		$().SPServices.SPRedirectWithID({	
			redirectUrl: "EditForm_cus.aspx",
			qsParamName: "ID"
		});
});

again this works coming from the allitems page

 

many thanks

 





Coordinator
Apr 8, 2011 at 1:37 PM

Joe:

I'm not sure if I've ever tested this particular variation. What does the URL look like when you go to the NewForm from the folder? I may not be handling this properly.

M.

Apr 8, 2011 at 1:44 PM

HI Marc,

URL looks like this - http://site/subsite1/subsite2/Lists/ListName/AllItems.aspx?RootFolder=%2fsubsite1%2fsubsite1%2fLists%2fListName%2fAsia&FolderCTID=&View=%7b39BBC65D%2d7138%2d4841%2d8131%2d4B7DB1B2968F%7d

 

Coordinator
Apr 8, 2011 at 1:49 PM

Thanks, Joe. I'm going to copy this into the Issue Tracker because it may well be a bug.

M.

Coordinator
Apr 8, 2011 at 1:49 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.