Forum Post: Re: Field Validation Doesn't Work In A Pop Up Window - New Ui

  • Thread starter Thread starter IramK
  • Start date Start date
Status
Not open for further replies.
I

IramK

Guest
Hello Harsha, I managed to find an issue. Basically I was closing the window when the below mentioned code runs so it doesn't really allow the server validation (i.e. triggers to be checked before performing the window close). Is it possible for me to perform my window close once all the triggers have ran and the form has submitted successfully? Kindly let me know. Code that runs on that new page's form submission: $("#theForm").submit(function() { var formDetails = rb.newui.page.PageContext.getFormDetails(rb.newui.util.EDIT_FORM_NAME); var validator = formDetails.getKendoValidator(); if (validator && validator.validate()) { //validation true... window.opener.HandlePopupResult($("#name").val()); // need this to happen after all the triggers are checked window.close(); // need this to happen after all the triggers are checked }

Continue reading...
 
Status
Not open for further replies.
Back
Top