forms no longer close on submit
-
- Posts: 76
- Joined: Wed Jan 21, 2015
My forms stopped closing on submit yesterday. My SharePoint 2013 list gets updates and additions, but the form doesn't close and is causing confusion. I have the following JavaScript code in the form.
fd.onsubmit(function (){
$("#aspnetForm").attr('action',location.pathname+'?Source=/bu/tools/xx/xxxxxx/xxxxxxxx.aspx');
return true;
});
fd.onsubmit(function (){
$("#aspnetForm").attr('action',location.pathname+'?Source=/bu/tools/xx/xxxxxx/xxxxxxxx.aspx');
return true;
});
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear David,
Do the forms close without the code? Also, are there any errors in console when you save?
Do the forms close without the code? Also, are there any errors in console when you save?
Cheers
-
- Posts: 76
- Joined: Wed Jan 21, 2015
Forms close when I click cancel. Forms seem to continue to run until it times out. The resulting correlation ID and log entry doesn't help.
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear David,
What? Do the forms close on save if you remove ALL JavaScript or not?
What? Do the forms close on save if you remove ALL JavaScript or not?
Cheers
-
- Posts: 76
- Joined: Wed Jan 21, 2015
It appears the javascript validations I use work, but the jquery doesn't. I see this warning in the dev console, but I don't know if it has anything to do with my issue.
A parser-blocking, cross site (i.e. different eTLD+1) script, http://ajax.googleapis.com/ajax/libs/jq ... ery.min.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
(anonymous) @ myconnect.xcenda.net/:674
A parser-blocking, cross site (i.e. different eTLD+1) script, http://ajax.googleapis.com/ajax/libs/jq ... ery.min.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
(anonymous) @ myconnect.xcenda.net/:674
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear David,
Were you able to resolve the jQuery issue? If not, what are you trying to achieve with this code, maybe we can help?
Were you able to resolve the jQuery issue? If not, what are you trying to achieve with this code, maybe we can help?
Cheers
-
- Posts: 76
- Joined: Wed Jan 21, 2015
I no longer believe the JavaScript and jQuery are the issue. I've removed the code and the forms still don't close. No errors in the console.
-
- Posts: 76
- Joined: Wed Jan 21, 2015
Workflows are not triggered when an item is created or changed.
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear David,
I'm not sure if this is related to forms or not. Have you tried to Reset the forms in the designer and test with default form? Make sure to export your form first as backup, so it's not lost after Reset.
I'm not sure if this is related to forms or not. Have you tried to Reset the forms in the designer and test with default form? Make sure to export your form first as backup, so it's not lost after Reset.
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 23 guests