I have a list named Parent
. After I create and save an item I want to be redirected to the NewForm
of that list (Parent
) again, to create another item.
How can I do this?
You can make use of the Source
query string parameter.
For the URL such as NewForm.aspx?Source=NewForm.aspx
Follow the below steps:
1) Download SharePoint Designer( same version as your sharepoint). 2) Download the Jquery file from internet and save it in Style library copy its path. 3) Open your site and navigate to NewForm.aspx of the Parent list. 4) You will see all XSLT and JS files mentioned there. 5) Refer your jquery inside contentplaceholder tag like this 6) Now open other script tag in next line
<script type=text/js>
function PreSaveAction(){
$window.location= "(your Newform location)";
return true;
}
Happy coding!!