Account


Earned badges

Achievement: Latest Unlocked

Topic Started

Topics
Hello, Our company operates in two separate states and will need to switch out our disclosure agreement depending on which state the application is in. What is the best way to go about this?
I have been using a form field anchor [Signer1.Fullname1] to identify where a signature field is supposed to go when sent through the API.
I have been using this blog post for help in getting my project off the ground. I have been work

Replies Created

Reply to: Two Person Face-To-Face Transaction - PHP

0 votes
Hi Haris, Thank you for your help. I took a look at that link and implemented into my code what I think is correct. However, I am still not seeing a drop down menu in the iframe. My only guess is that I have the 'inPerson' => 'true' in the wrong place, but I have tried it in a few different spots to no success. I attached my code for reference - is there something I am missing?
public function buildPackage($firstName, $lastName, $email) {
        $build = array(
            'settings' => array(
                'ceremony ' => array(
                    'inPerson' => 'true',
                )
            ),
            'type' => 'PACKAGE',
            'status' => 'DRAFT',
            'roles' => array(
                array(
                    'id' => 'Signer1',
                    'type' => 'SIGNER',
                    'signers' => array(
                        array(
                            'email' => $email,
                            'firstName' => $firstName,
                            'lastName' => $lastName,
                            'id' => 'Signer1',
                        )
                    ),
                ),
                array(
                    'id' => 'Signer2',
                    'type' => 'SIGNER',
                    'signers' => array(
                        array(
                            'email' => '[email protected]',
                            'firstName' => 'David',
                            'lastName' => 'Ilgen',
                            'id' => 'Signer2',
                        )
                    ),
                ),
                array(
                    'id' => 'Sender1',
                    'type' => 'SENDER',
                    'signers' => array(
                        array(
                            'email' => '[email protected]',
                            'firstName' => 'David',
                            'lastName' => 'Ilgen',
                            'id' => 'Sender1',
                        )
                    ),
                ),
            ),
            'name' => 'PHP Application Example',
        );
        $packageJSON = json_encode($build);
        $packageId = json_decode($this->sendRequest($this->packageAppend, $packageJSON, NULL, NULL), true);
        return $packageId;
    }
Thank you.

Reply to: Two Person Face-To-Face Transaction - PHP

0 votes
Thank you for the heads up, Haris. Unfortunately, it won't work for us to have it turned on for all packages, so I will move forward with getting our email version set-up and try and develop something behind the scenes that loads new iframes when the last signature is completed.

Reply to: Text Anchor to Identify Signature Field

0 votes
Haris, I have been working to implement the text anchors via the link you supplied (thank you, by the way). However, I have been receiving an error and I cannot get the call to go through. Here is my current code (I am using PHP, so I am trying to convert the JSON into a PHP array).
//Create package
    public function buildPackage($firstName, $lastName, $email) {
        $build = array(
            "settings" => array(
                "ceremony" => array(
                    "inPerson" => true,
                )
            ),
            "roles" => array(
                array(
                    "id" => "Signer1",
                    "type" => "SIGNER",
                    "signers" => array(
                        array(
                            "email" => $email,
                            "firstName" => $firstName,
                            "lastName" => $lastName,
                            "id" => "Signer1",
                        ),
                    ),
                    "name" => "Signer1",
                ),
                array(
                    "id" => "Signer2",
                    "type" => "SIGNER",
                    "signers" => array(
                        array(
                            "email" => "[email protected]",
                            "firstName" => "David",
                            "lastName" => "Ilgen",
                            "id" => "Signer2",
                        ),
                    ),
                    "name" => "Signer2",
                ),
                array(
                    "id" => "Sender1",
                    "type" => "SENDER",
                    "signers" => array(
                        array(
                            "email" => "[email protected]",
                            "firstName" => "Test",
                            "lastName" => "Sender",
                            "id" => "Sender1",
                        ),
                    ),
                    "name" => "Sender1",
                ),
            ),
            "documents" => array(
                array(
                    "approvals" => array(
                        array(
                            "fields" => array(
                                array(
                                    "type" => "SIGNAUTRE",
                                    "extract" => false,
                                    "extractAnchor" => array(
                                        "text" => "APPLICANTS SIGNATURE",
                                        "index" => 0,
                                        "width" => 150,
                                        "height" => 40,
                                        "anchorPoint" => "TOPLEFT",
                                        "characterIndex" => 0,
                                        "leftOffset" => 0,
                                        "topOffset" => -50,
                                    ),
                                    "left" => 0,
                                    "subtype" => "FULLNAME",
                                    "top" => 0,
                                ),
                                array(
                                    "value" => null,
                                    "type" => "INPUT",
                                    "binding" => "{approval.signed}",
                                    "extract" => false,
                                    "extractAnchor" => array(
                                        "text" => "DATE",
                                        "index" => 1,
                                        "width" => 75,
                                        "height" => 40,
                                        "anchorPoint" => "TOPRIGHT",
                                        "characterIndex" => 0,
                                        "leftOffset" => 10,
                                        "topOffset" => -30,
                                    ),
                                    "left" => 0,
                                    "subtype" => "LABEL",
                                    "top" => 0,
                                ),
                            ),
                            "role" => "Signer1",
                        ),
                        array(
                            "fields" => array(
                                array(
                                    "type" => "SIGNAUTRE",
                                    "extract" => false,
                                    "extractAnchor" => array(
                                        "text" => "APPLICANTS SIGNATURE",
                                        "index" => 1,
                                        "width" => 150,
                                        "height" => 40,
                                        "anchorPoint" => "TOPLEFT",
                                        "characterIndex" => 0,
                                        "leftOffset" => 0,
                                        "topOffset" => -50,
                                    ),
                                    "left" => 0,
                                    "subtype" => "FULLNAME",
                                    "top" => 0,
                                ),
                            ),
                            "role" => "Signer2",
                        ), 
                        array(
                            "fields" => array(
                                array(
                                    "type" => "SIGNAUTRE",
                                    "extract" => false,
                                    "extractAnchor" => array(
                                        "text" => "AGENT SIGNATURE",
                                        "index" => 0,
                                        "width" => 150,
                                        "height" => 40,
                                        "anchorPoint" => "TOPLEFT",
                                        "characterIndex" => 0,
                                        "leftOffset" => 0,
                                        "topOffset" => -50,
                                    ),
                                    "left" => 0,
                                    "subtype" => "FULLNAME",
                                    "top" => 0,
                                ),
                                array(
                                    "value" => null,
                                    "type" => "INPUT",
                                    "binding" => "{approval.signed}",
                                    "extract" => false,
                                    "extractAnchor" => array(
                                        "text" => "DATE",
                                        "index" => 0,
                                        "width" => 75,
                                        "height" => 40,
                                        "anchorPoint" => "TOPRIGHT",
                                        "characterIndex" => 0,
                                        "leftOffset" => 10,
                                        "topOffset" => -30,
                                    ),
                                    "left" => 0,
                                    "subtype" => "LABEL",
                                    "top" => 0,
                                ),
                            ),
                            "role" => "Sender1",
                        ),
                    ),
                    "name" => "Sample Application",
                ),
            ),  
            "name" => "Application Example",
            "type" => "PACKAGE",
            "language" => "en",
            "autoComplete" => true,
            "status" => "DRAFT",            
        );
        $packageJSON = json_encode($build);
        $packageId = json_decode($this->sendRequest($this->packageAppend, $packageJSON, NULL, NULL), true);
        return $packageId;
    }

    //Upload document
    public function buildDocument($packageId, $firstName, $lastName, $emailAddress) {
        $build = array(
            'fields' => array(
                array(
                    'value' => $firstName,
                    'name' => 'first_name',
                ),
                array(
                    'value' => $lastName,
                    'name' => 'last_name',
                ),
                array(
                    'value' => $emailAddress,
                    'name' => 'email',
                ),
            ),
            'extract' => true,
            'name' => 'Sample Contract',
            'id' => 'contract'
        );
        $doc = file_get_contents("documents\TestApp.pdf");
        $documentJSON = json_encode($build);
        $status = $this->sendRequest($this->packageAppend . $packageId['id'] . '/documents', $documentJSON, $doc, NULL);
        return $status;
    }
Did I convert the JSON over incorrectly, or am I missing something simple that would fix the issue? Thank you, David Ilgen

Reply to: Text Anchor to Identify Signature Field

0 votes
Haris, I have attached a screenshot of the iframe with the error message. This is the only error mesage I ever see, as I have gotten it any time I have had a failed call (even before the text anchors). Thank you, David Ilgen

Attachments
Error.png0 bytes

Subscriptions

Topics Replies Freshness Views Users
Hello, Our company operates in two separate states and will need to switch out our disclosure agreement depending on which state the application is in. What is the best way to go about this?
12 6 years 7 months ago 44
Profile picture for user harishaidary
I have been using a form field anchor [Signer1.Fullname1] to identify where a signature field is supposed to go when sent through the API.
30 7 years 4 months ago 87
Profile picture for user harishaidary
Profile picture for user mwilliams
I have been using this blog post for help in getting my project off the ground. I have been work
6 7 years 5 months ago 22
Profile picture for user harishaidary

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.