Posts

Showing posts with the label redirection to new page after newform.aspx

SharePoint: Redirection to a desired page after adding a New item to a list

Image
Context  One of the requirements that we frequently come across setting a return address of the NewForm.aspx page. That precisely means that if you are about to add a new item to a list, first you press the link "Add New Item" (or some other way) and a newform.aspx appears as a pop up. Upon filling the required fields and pressing Save you are redirected to the same list (All item view.) The problem arises if we don't to be redirected to this view rather to some other page. For that reason here is the trick. Solution:  The URL to newform.aspx consists of two query strings i.e. "RootFolder" and "Source". Let leave Rootfolder for now and focus "Source" Setting the Source with your desired URL will redirect the user to this specific desired page that has been point in the Source. Remember that source requires a URL encoding. you can encode your URL using the following link http://www.url-encode-decode.com/ . So what I did is to place an an...