Error while submitting form window.self._dlgWndTop is not a function
- WinstonFroidPinto
- Posts: 32
- Joined: Thu Mar 16, 2017
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.
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.
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
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.
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.
Cheers
- WinstonFroidPinto
- Posts: 32
- Joined: Thu Mar 16, 2017
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.
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.
- Attachments
-
- screenshot.png (99.16 KiB) Viewed 2782 times
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
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.
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.
Cheers
- WinstonFroidPinto
- Posts: 32
- Joined: Thu Mar 16, 2017
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.
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.
- Attachments
-
- form js.png (71.5 KiB) Viewed 2768 times
-
- button click.png (74.17 KiB) Viewed 2768 times
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
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.
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.
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests