I have a button in the home page named as say "Create Request"
On click of "Create Request" newform.aspx of a custom list will be opened as a popup. A request is a new item in a custom list.
Validation of required fields is done inside the PreSaveAction function.
Below given are the last two lines of the PreSaveAction method.
For saving the list item PreSaveAction should return true. But business rules need the popup also should get closed once the save happens.
Currently as window is getting closed , the PreSaveAction method is failing some times to return true. So those items wont be getting saved to the list.
Some items are getting saved. But most of the time it is getting failed to save.
Any one knows how to handle this ?
View Complete Post