forms no longer close on submit

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
davidnarramore
Posts: 76
Joined: Wed Jan 21, 2015

09 Jun 2021

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;
});

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

09 Jun 2021

Dear David,
Do the forms close without the code? Also, are there any errors in console when you save?
Cheers

davidnarramore
Posts: 76
Joined: Wed Jan 21, 2015

10 Jun 2021

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.

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

10 Jun 2021

Dear David,
What? Do the forms close on save if you remove ALL JavaScript or not?
Cheers

davidnarramore
Posts: 76
Joined: Wed Jan 21, 2015

10 Jun 2021

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

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

17 Jun 2021

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?
Cheers

davidnarramore
Posts: 76
Joined: Wed Jan 21, 2015

16 Jul 2021

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.

davidnarramore
Posts: 76
Joined: Wed Jan 21, 2015

16 Jul 2021

Workflows are not triggered when an item is created or changed.

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

19 Jul 2021

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.
Cheers

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 23 guests