AnsweredAssumed Answered

show pop-up on form submission

Question asked by kriti1602 on Aug 17, 2015
Hi,

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:

Alfresco.util.Ajax.request(
            {
               url: Alfresco.constants.URL_SERVICECONTEXT + "components/form",
               dataObj:
               {
                  htmlid: this.id + "-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]
               },
               successCallback:
               {
                  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.
Kriti

Outcomes