Page 1 of 1

Error while submitting form window.self._dlgWndTop is not a function

Posted: 10 Jul 2017
by WinstonFroidPinto
Hi,

I am validating all the required fields on button click, I get above error when i dont fill all the required fields and submit and then submit again with all required fields filled,hence the form doesnt submit at all. When I do fill all the required fields and submit the form submits successfully in the initial stage itself.

Regards,
Winston.

Re: Error while submitting form window.self._dlgWndTop is not a function

Posted: 10 Jul 2017
by Nikita Kurguzov
Hello, Winston!
Can you please describe the problem in detail? Does it happen on every form or only on one of them? Do you use default validation or do you have custom validation as well? If anything, screenshots might be helpful.

Re: Error while submitting form window.self._dlgWndTop is not a function

Posted: 11 Jul 2017
by WinstonFroidPinto
Hi,

I am validating all the fields using custom validation.If all the required fields the form is successfully submitted or else not...
Now suppose if i leave some required field as blank as submit it will validate the form and hence the form doesnt submit which is as expected..But when i again fill all the required fields and submit I am getting the above error.If I fill all the required fields in the beginning itself the form submits successfully.So what could could be the reason for the above issue?The problem is that cusotm validation returns true to the function on button click but too form doesnt submit.Attaching the screenshot for your reference.

Regards,
Winston.

Re: Error while submitting form window.self._dlgWndTop is not a function

Posted: 11 Jul 2017
by Nikita Kurguzov
Currently we were unable to replicate same issue. The error you are getting seems to indicate some sort of JavaScript issue, possibly with the libraries. Are you using Sharepoint custom validation settings or did you write your own JS code for validation?

You can try commenting out JS code in your child form and see if it works. If it doesn't or if you need to get this exact code to work, we need to take a closer look at it.

So, if possible, let us know the version of your Forms Designer and show us your JS code, so we can test it ourselves and try to come up with some solution.

Re: Error while submitting form window.self._dlgWndTop is not a function

Posted: 12 Jul 2017
by WinstonFroidPinto
Hi,

I am using custom javascript validation for my form.My forms designer version is 3.1.3.

I am attaching the js code of both form and the button click below:
The problem comes when i leave a required field blank and click submit button and fill all required all fields and submit again.


Regards,
Winston.

Re: Error while submitting form window.self._dlgWndTop is not a function

Posted: 13 Jul 2017
by Nikita Kurguzov
Hello, Winston!
One of the issues I see in your code is the use of asynchronous functions. The event handler on the Save button does not support them. This might be a part of the problem, but I can't say that this is it, for sure.

We can assess this problem for you and determine how much it will take to solve, if you email us your code and describe what you need in detail - support@spform.com

Though you will need to purchase support hours for us to come up with solution. I hope you understand, as this process takes time and resources.