Need help with using the attribute ConcealValueOnDocument. Document in the envelope is a html document
Following syntax was tried and it did not work.
<input name="color" data-ds-type="text" data-ds-role="Signer1" style="width:120px;" concealValueOnDocument="true" />");
And in the developer console the option is "Hide text with asterisks". I am looking for examples or directions on how to conceal a value when uploading as HTML.
Also is it possible to hide the text box completely when value is entered?
Edited to show how the document is submitted
Document document = new Document();
document.setHtmlDefinition(documentHtmlDefinition);
document.setName(signatureRequest.getDocumentName());
document.setDocumentId(signatureRequest.getDocumentId());
....
envelopesApi.createEnvelope(accountId, envelopeDefinition);
And the html has appropriate tags for different fields.
You are setting the tab via inline HTML. Inline HTML can be used to set many tab properties, but not all of them. concealValueOnDocument cannot be set via inline HTML. The list is on page Setting tabs in HTML documents in section Configuring HTML tabs.
Solution
Use an Inline JSON marker for the tab. See page Setting tabs in HTML documents.
Example
API request:
"textTabs": [
{
"name": "color",
"tabLabel": "signer1Color",
"width": "120",
"concealValueOnDocument: "true"
}
]
Within the HTML:
{{ "tabLabel": "signer1Color" }}
Related
We are sending a document through API at a certain point the customer should be able to write a big block of text. Yet when putting a text field in the custom field without limitation you can only write until you get to the end of the page. and it does not continue on the line below.
unlimited
if you put fixed size i do not seem to be able to actually specify the width and hight of the field that a customer can use in de custom field set-up. and i only get a small field where you can place 1 character.
fixed size
Does anyone now how to get around this?
We place the fields on the documents with predefined tags on the document and custom document fields
I tried to go to the other settings to see whether something could help me like the fixed size.
DocuSign doesn't allow you to create a text box with unlimited size or for users to input text that extends off the page. I would recommend using the height and width properties to set the size of the tab to the max area where your user can input text. If you set the height property your tab will be able to include multiple lines of text. The json would look something like the snippet below. You can also enable API request logging which allows you to try setting tabs in the web app and then you can download the logs to see what the json looks like for the tabs you created.
"textTabs": [
{
"pageNumber": "1",
"xPosition": "300",
"yPosition": "400",
"documentId": "1",
"width": "100",
"height": "30"
}
]
I followed the Google promotion email code template and drafted one demo.
https://developers.google.com/gmail/promotab/overview
and the code also passed Google makeup test
https://www.google.com/webmasters/markup-tester/
however, when I use my email tools inserting the following code into the HTML editor and send out the EDM, no effect appears, it just shows up like a normal email (no image/banner appears in promotion box).
I saw there is another document from Google but it only address the "one-click" / "go-to-action" email
https://developers.google.com/gmail/markup/apps-script-tutorial
Would highly appreciate it if anyone can help to point out mistakes.
FYI Promotion email markup does not require whitelisting
<!-- Paste your own code here, or change the existing code to experiment with what works -->
<!-- Feel free to paste the entire HTML of your email -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<script type="application/ld+json">
[{
"#context": "http://schema.org/",
"#type": "Organization",
// WARNING: Before sending email, either point the logo
// at your own image or delete the logo annotation.
//
// If showing a logo, we recommend using an https URL.
// It's not a requirement today, but may be in the future.
"logo": "https://www.gobear.com/hk//themes/custom/gobear/apple-touch-icon.png"
},{
"#context": "http://schema.org/",
"#type": "EmailMessage",
// Use this optional alternative subject line to avoid duplicate text
// between the subject, deal badge, and discount code.
"subjectLine": "【後疫情時代】幫你睥實全港理財貼士 🐻"
},{
"#context": "http://schema.org/",
"#type": "DiscountOffer",
// Describe your discount, this will be shown as a badge (eg "25% off" or "free shipping")
"description": "6月理財小貼士",
"availabilityStarts": "2020-07-18T22:51:01-07:00",
"availabilityEnds": "2020-07-31T22:51:01-07:00"
},{
// Promotion card with single image.
// We recommend using an https URL. It's not a requirement today, but may be in the future.
// Any image size will work and will just be cropped automatically.
// GIF & WEBP images are not supported and will be filtered out.
// Sample image is 538x138, 3.9 aspect ratio
"#context": "http://schema.org/",
"#type": "PromotionCard",
"image": "https://newtwb.s3.amazonaws.com/images/gobearhk/GoBear_Edm_banner_20200618.jpg"
}]
</script>
</head>
This appears to be a bug!
After doing some testing, it appears that neither the Promotional Email nor any Email markup seems to be working.
I have taken the liberty of reporting this on Google's Issue Tracker for you, detailing the behaviour:
Following the Apps Script Quickstart for Email Markup does not display the Go-To action
You can hit the ☆ next to the issue number in the top left on the page which lets Google know more people are encountering this and so it is more likely to be seen to faster.
How we can change the text of the TAB Item dynamically based on Order Type in Sales order screen.
for example: for TR order type, I want to change Document Details to Transfer Details.
To my knowledge there is no DAC binding for changing Tab Header Text from the business logic layer (graph). A possible workaround if you have a limited number of alternative Tab Header Text could be to create a tab for each of them and dynamically hide them based on your display condition.
How to hide Tabs in Acumatica:
Hiding a tab from the user interface dynamically
The other option would be to use JavaScript to change the inner element of the Tab Header Control.
Both options are less than ideal and can have an impact if you're looking to have your customization certified by Acumatica but if it's a hard requirement that's the only ways to do it that I'm aware of.
In the following example I'm using the hardcoded HTML Control ID for the Tab Header Control that I looked up using the Inspect Element feature provided by HTML browsers:
<asp:Content ID="cont1" ContentPlaceHolderID="phDS" Runat="Server">
<script type="text/javascript">
$(function() {
$(document)
.ready(function() {
document.getElementById("ctl00_phG_tab_tab0").innerHTML = "My Tab Header Text";
});
});
</script>
[...]
</asp:Content>
I have a place on my pdf that says, I authorize .....
I would like to dynamicly put in the Company Name here that will be use in the same template
is there a way like how I pass recipientName, I can also pass company Name so that it can display here.
Please research the DocuSign Developer Center, as it answers this question and many more you may have. If you look at the Explore -> Features section you'll see in the Stick-eTabs section an area that describes Tab Positioning. Here it explains the two main ways of placing tabs on your documents.
https://www.docusign.com/developer-center/explore/features/stick-etabs
The Tab Positioning in the above page describes how you can place tags using Absolute positioning (i.e. 100 pixels to the left, 50 pixels down), or you can use Relative (aka Anchor) positioning. With anchor tabs you can place tabs based on document content. For your example of placing a company tab at or near the text "I authorize...", you can use the following (partial) JSON:
"tabs": {
"companyTabs": [
{
"anchorString": "I authorize...",
"anchorXOffset": "1",
"anchorYOffset": "0",
"anchorIgnoreIfNotPresent": "false",
"anchorUnits": "inches"
}
]
}
This would in turn place a companyName tab 1-inch to the right of the text "I authorize..." in your document. You can place any DocuSign tab using the Anchor Tagging method, but one thing to note is that it will place those tags at ANY and EVERY location it finds the anchorString text in the envelope.
I have a custom SharePoint page with several dataviews. The dataviews essentially filter documents matching a certain criteria from a document library and display a link to the document along with some other meta data.
The problem I have is that when a document has a single quote in it's title, the character is being rendered as ' and invalidating the link. This is the code within my custom page that is displaying the invalid link.
<A onfocus="OnLink(this)" HREF="{#FileRef}" onclick="return DispEx(this,event,'','','','','{ddwrt:ListProperty("DefaultItemOpen")}','{ddwrt:MapToControl("", string())}','{#HTML_x0020_File_x0020_Type}','','{ddwrt:GetUserID('CheckoutUser')}','{$Userid}','{ddwrt:ListProperty("ForceCheckout")}','{$FieldIDA5KNTB}','{ddwrt:CurrentRights()}')"><xsl:value-of select="ddwrt:UrlBaseName(string(#LinkFilename))" /></A>
Does anyone have any thoughts on how I can ensure the #FileRef variable is encoded correctly before being rendered?
Many thanks in advance :)
you need to use the ServerURL or EncodedAbsUrl properties, this guys written it out already:
Itay Shakury's blog