Redirect to different page on Cancel or Save button click in NewForm.aspx
- <script src="/sites/Vijai/SiteAssets/jquery.SPServices-0.7.2.min.js" type="text/javascript"></script>
- <script src="/sites/Vijai/SiteAssets/jquery-1.8.3.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $('input[value=Cancel]').click(function() {
- window.location.replace("http://www.google.com");
- });
- $('input[value=Save]').click(function() {
- window.location.replace("http://www.google.com");
- });
- });
- </script>
No comments:
Post a Comment