AnsweredAssumed Answered

show pop-up on form submission

Question asked by kriti1602 on Aug 17, 2015

I have just started working on Alfresco forms and need help on share side regarding the form submission/reset behaviour.
Currently, I am using Alfresco.util.Ajax.request with some parameters to get all my forms and render it on UI.

the code is as below:

               url: Alfresco.constants.URL_SERVICECONTEXT + "components/form",
                  htmlid: + "-formFrame-" + Alfresco.util.generateDomId(),
                  itemKind: "type",
                  itemId: "fr:" + this.keyArgs[4],
                  mode: "create",
                  submitType: "json",
                  showCaption: true,
                  formUI: true,
                  showResetButton: true,
                  destination:  this.keyArgs[5]
                  fn: this.onFormLoaded,
                  scope: this
               failureMessage: this.msg("message.failure"),
               scope: this,
               execScripts: true

My requirement is to display a pop-up on successful form submission and reset. But I am not sure where to put my pop-up code as the API provide the callback methods for the forms retrieved successfully but not when it is submitted or cleared successfully.

Can somebody please help.

Thanks in advance.