Page 1 of 1

forms no longer close on submit

Posted: 09 Jun 2021
by davidnarramore
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;
});

Re: forms no longer close on submit

Posted: 09 Jun 2021
by Nikita Kurguzov
Dear David,
Do the forms close without the code? Also, are there any errors in console when you save?

Re: forms no longer close on submit

Posted: 10 Jun 2021
by davidnarramore
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.

Re: forms no longer close on submit

Posted: 10 Jun 2021
by Nikita Kurguzov
Dear David,
What? Do the forms close on save if you remove ALL JavaScript or not?

Re: forms no longer close on submit

Posted: 10 Jun 2021
by davidnarramore
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

Re: forms no longer close on submit

Posted: 17 Jun 2021
by Nikita Kurguzov
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?

Re: forms no longer close on submit

Posted: 16 Jul 2021
by davidnarramore
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.

Re: forms no longer close on submit

Posted: 16 Jul 2021
by davidnarramore
Workflows are not triggered when an item is created or changed.

Re: forms no longer close on submit

Posted: 19 Jul 2021
by Nikita Kurguzov
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.