4 Replies Latest reply on Dec 4, 2013 5:19 AM by naveen519

    Signature status for just submitting signature and yet to validate the email

    naveen519 Level 1

      Hi,

       

      I need to get a specific signature status for just submitting signature and yet to validate the email. I need to restrict the user to submit my web form with out signing in the widget. So here, while submitting the form, Im fetching the signature status via ajax though API and based on the status the web form is restricted to submit.

       

      But using API, I could only able to get the complete signature status(submitting signature and validating email). Is it possible to get the status of only submission and yet to validate email ?

       

      Thank you,

        • 1. Re: Signature status for just submitting signature and yet to validate the email
          asmusz Adobe Employee

          Naveen,

           

          So when signing a widget, you have to poll for the "Document"(child) key not the "Widget"(Parent) key.

           

          When someone has "signed" a widget and widget verification is turned on(default), there will be a "CREATED" event that has the "Document"(child) key sent to the callback or viewable in history and that document will be in an agreement status of "WAITING_FOR_VERIFICATION" until the verification process is complete.

           

           


          • 2. Re: Signature status for just submitting signature and yet to validate the email
            naveen519 Level 1

            Hi Asmusz,

             

            Thanks for the reply.

             

            I created the widget with API createEmbeddedWidget and got documentKey in return from the result. Here is the result when I tried to get the status of the document from getDocumentInfo by passing documentKey:

             

            object(stdClass)#75 (1) {

              ["documentInfo"]=>

              object(stdClass)#76 (10) {

                ["events"]=>

                object(stdClass)#77 (1) {

                  ["DocumentHistoryEvent"]=>

                  object(stdClass)#78 (8) {

                    ["type"]=>

                    string(7) "CREATED"

                    ["actingUserIpAddress"]=>

                    string(13) "123.143.44.82"

                    ["actingUserEmail"]=>

                    string(27) "naveen.kyatam@olivsdetech.net"

                    ["comment"]=>

                    NULL

                    ["participantEmail"]=>

                    string(27) "naveen.kyatam@olivsdetech.net"

                    ["date"]=>

                    string(25) "2013-12-03T05:02:23-08:00"

                    ["description"]=>

                    string(31) "Document created by Naveen"

                    ["documentVersionKey"]=>

                    string(15) "X38BTTMN4D734M3"

                  }

                }

                ["latestDocumentKey"]=>

                string(15) "X38BTTP3X7XKK4W"

                ["locale"]=>

                string(5) "en_US"

                ["message"]=>

                NULL

                ["name"]=>

                string(19) "[DEMO USE ONLY] ew9"

                ["nextParticipantInfos"]=>

                NULL

                ["documentKey"]=>

                string(15) "X389U3WXM663X76"

                ["securityOptions"]=>

                NULL

                ["participants"]=>

                object(stdClass)#79 (1) {

                  ["ParticipantInfo"]=>

                  object(stdClass)#80 (8) {

                    ["roles"]=>

                    object(stdClass)#81 (1) {

                      ["ParticipantRole"]=>

                      string(6) "SENDER"

                    }

                    ["status"]=>

                    string(6) "WIDGET"

                    ["alternateParticipants"]=>

                    NULL

                    ["securityOptions"]=>

                    NULL

                    ["company"]=>

                    string(20) "NaveenTechnology"

                    ["email"]=>

                    string(27) "naveen.kyatam@olivetech.net"

                    ["name"]=>

                    string(11) "Naveen"

                    ["title"]=>

                    string(13) "Sr. Developer"

                  }

                }

                ["status"]=>

                string(6) "WIDGET"

              }

            }


            and the result is the same even If the document is signed in the widget and waiting for email validation. Not sure if im in a right path to get 'WAITING_FOR_VERIFICATION' status. Please clarify.

             

            Thank you,

            • 3. Re: Signature status for just submitting signature and yet to validate the email
              asmusz Adobe Employee

              Naveen,

               

              The key returned by createEmbeddedWidget is the parent key, not the child key.  Each instance of a signed widget creates its own document key which can be seen by using a getFormData call against the parent widget key and then using getDocumentInfo against each of the child keys to get the status for the "in process" instance of the widget.

              • 4. Re: Signature status for just submitting signature and yet to validate the email
                naveen519 Level 1

                Hi Asmusz,,

                 

                The moment I signed the document from the widget, I got the following result from the getFormData API by passing parent documentKey which I got from createEmbeddedWidget.

                 

                object(stdClass)#75 (1) {

                  ["getFormDataResult"]=>

                  object(stdClass)#76 (4) {

                    ["errorCode"]=>

                    string(12) "NO_FORM_DATA"

                    ["errorMessage"]=>

                    NULL

                    ["formDataCsv"]=>

                    NULL

                    ["success"]=>

                    bool(false)

                  }

                }

                 

                and the result is the same untill I confirm the email. I could not get the child key of the document just signed and out waiting for email validation.

                 

                Please help me to find the child key so as to find the specific status as WAITING_FOR_VERIFICATION

                 

                Thank you,