I can pass data to text labels but can't workout how to include data needs mapping to a Radio group. I think I need to create a separate array for Group Labels but can't find any help on this.
Below is a snippet of my code which works fine except my attempt to pass a value to my first_life_title radio group.
I tried both groupName and tabLabel for the radio group.
array(
"email" => $toemail,
"name" => $recipientName,
"roleName" => $templateRoleName,
"tabs" => array(
"textTabs" => array (
array (
"tabLabel" => "firstlife",
"value" => $name
),
array (
"groupName" => "first_life_title",
"value" => $title
),
Jon
In the code you posted, you're specifying the Radio Group tabs within the textTabs array -- you should instead specify radioGroupTabs as a peer of the textTabs array. Here's the JSON that shows the correct structure -- notice that the radioGroupTabs array contains a groupName property as well as a radios property (which is itself an array, containing a single object to specify the radio button to select):
"textTabs": [
{
"value": "sample string 11",
"tabLabel": "sample string 19"
}
],
"radioGroupTabs": [
{
"groupName": "NAME_OF_RADIO_GROUP",
"radios": [
{
"value": "VALUE_OF_RADIO_BUTTON_TO_SELECT",
"selected": "true"
}
]
}
]
Related
I"m using the DocuSign API and have added a text tab for the recipient to enter their name. When they receive the email it appears as a required field - they can't continue unless they complete this field. However in my request I have not set this field to be mandatory/required.
Here's the data for the textTab:
"textTabs" :
[
{
"documentId" : "1",
"pageNumber" : "6",
"tabLabel" : "Name",
"xPosition" : "86",
"yPosition" : "273"
}
]
I haven't included the "required" parameter so not sure why this is appearing as a required field?
If you do not set "required" property for Text Tab then it is required in DocuSign. To make it optional, set "required":"false"
"textTabs" :
[
{
"documentId" : "12345",
"pageNumber" : "1",
"tabLabel" : "Name",
"xPosition" : "86",
"yPosition" : "273",
"required":"false"
}
]
}
I am trying to send notifications into the Slack channel from the external source. I am trying to put the URL link inside field tag of attachment. Is there a way to do that?
{
"attachments": [
{
"fallback": "Required plain-text summary of the attachment.",
"color": "#36a64f",
"pretext": "Optional text that appears above the attachment block",
"author_name": "Bobby Tables",
"author_link": "http://flickr.com/bobby/",
"author_icon": "http://flickr.com/icons/bobby.jpg",
"title": "Slack API Documentation",
"title_link": "https://api.slack.com/",
"text": "Optional text that appears within the attachment",
"fields": [
{
"title": "Priority",
"value": "High",
"short": false
}
],
"image_url": "http://my-website.com/path/to/image.jpg",
"thumb_url": "http://example.com/path/to/thumb.png"
}
]
}
Yes, you can use URLs in fields. But it only works in the value tag. There you can even use markup.
Here is an example in PHP:
$slack->addAttachment( array (
"fallback" => "Fallback",
"title" => "Title",
"text" => "text",
"fields" => array (
array (
"title" => "Priority",
"value" => "<http://i.imgur.com/nwo13SM.png|test>",
"short" => false
)
)
));
I am trying to send a document for signing via the DocuSign REST API. I'm using Sign Here tabs with an Anchor text string.
The JSON Object request:
"emailSubject" : "This is email subject",
"emailBlurb" : "This is email body",
"recipients" : {
"signers" : [ {
"routingOrder" : "1",
"name" : "Recipeient Name",
"email" : "Recipeient Email Address",
"recipientId" : "1",
"tabs" : {
"signHereTabs" : [ {
"anchorString" : "By:",
"anchorXOffset" : "1",
"anchorYOffset" : "1",
"anchorIgnoreIfNotPresent" : "true",
"anchorUnits" : "inches"
} ]
}
} ]
},
"documents" : [ {
"name" : "document.pdf",
"documentId" : "1",
"bytes" : "Byte Representaton of document"
} ],
"status" : "sent"
}
This is working perfectly fine with a minor glitch: The document has two matching strings "By:", and the Sign Here tab is placed on both of them.
Is there a way I can restrict this to only add the Sign Here tab to the first instance of the string "By:" in the document?
Unfortunately, no. The anchor strings on your document must be unique, otherwise that tag will be placed anywhere that string is found. See the Rules for working with anchors section here.
I was able to successfully generate and send an envelope from template using the Docusign API. The only problem is that the tab values and not pre-populating as expected (they remain blank). Here is the relevant code based on DocuSign-REST-API-Webinar-April2013:
/////////////////////////////////////////////
// STEP 2 - Create an envelope
////////////////////////////////////////////
$data = array(
"accountId" => $accountId,
"emailSubject" => "DocuSign API - Signature Request from Template",
"templateId" => $templateId,
"templateRoles" => array(
array(
"email" => $email,
"name" => $recipientName,
"inPersonSignerName" => "Some Customer",
"roleName" => "Customer",
"routingOrder" => 2,
"tabs" => array(
"textTabs" => array(
array(
"tabLabel"=> "mmr",
"value" => "29.95"
)
)
)
),
array(
"email" => $email,
"name" => $recipientName,
"inPersonSignerName" => "Some Tech",
"roleName" => "Tech",
"routingOrder" => 1,
"tabs" => array(
"textTabs" => array (
array (
"tabLabel" => "\\*state",
"value" => "North Carolina"),
array (
"tabLabel" => "\\*city",
"value" => "Raleigh")
)
)
)
),
"status" => "sent");
All my searches for answers on support forums, documentation, etc seem to point to what I have. I have double-checked the tabLabels and they are correct and assigned to the correct role. The template contains three roles - Tech (Sign In Person), Customer (Sign In Person), Data Entry (Receive a Copy).
Can anybody spot the problem? I also tried with just "tabLabel" => "state" and "tabLabel" => "city" (i.e. without the wildcard) but same problem. Let me know if you need more info. Thanks!
Have you verified in the template that the tags are assigned to the expected recipient? Based on your code above, it looks like the tag labeled "mmr" should be assigned to the Customer role and the tags labeled "state" and "city" are assigned to the Tech. Is that correct?
I am trying to integrate docusign api into my application using rest.I have used Request signature on document function form docusign APIWalkthrough.You can also refer the link http://iodocs.docusign.com/APIWalkthrough/requestSignatureFromDocument. I am trying to add the recipient address into the email field.but i am getting an error like the following.
/accountId = 657326 baseUrl = https://demo.docusign.net/restapi/v2/accounts/657326 error calling webservice, status is:400 error text is --> { "errorCode": "INVALID_USERNAME_FOR_RECIPIENT", "message": "The user name for the recipient is invalid. The user name is invalid for recipient email somangshu.drocker#gmail.com" }/
The code for the above method is as follows.
$email=VA_Logic_Session::getInstanceform()->emailaddress1;(this value is passed dynamically or to say its specified by the user)
$data = array (
"emailSubject" => "Sample Document",
"documents" => array( array( "documentId" => "1", "name" => $documentName)),
"recipients" => array( "signers" => array(
array( "email" => $email,(this variable is declared above with recipient email address spcified by te user)
"name" => $recipientName,
"recipientId" => "1",
"tabs" => array(
"signHereTabs" => array(
array( "xPosition" => "515",
"yPosition" => "279",
"documentId" => "1",
"pageNumber" => "2" )
))
))
),
"status" => "sent"
);
Also how do i point to the last page of any pdf. I could find the tab "pagenumber" as shown above. But what is the parameter to be passed there.
i am not able to figure out the problem hear.pls help
Whenever you receive the error INVALID_USERNAME_FOR_RECIPIENT check the actual values that are being set for the recipient's name. From our comments it seems that was indeed the problem in this case.
With regards to your page number question, there's no "last page" property so you need to know how many pages are in your document before you create the envelope to be able to assign to the last page. For instance, if you determine the document has 10 pages, then set to last page by doing:
"pageNumber": "10",
in your request body JSON (or XML).