Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Html Tags are not working in Note for Approve tag in docusign-esign-java sdk in version 3.X.X. Please provide the solution for this? #218

Open
ukedia92 opened this issue Dec 4, 2021 · 1 comment
Labels
area-swagger Swagger Spec

Comments

@ukedia92
Copy link

ukedia92 commented Dec 4, 2021

I have been using docusign-esign-java SDK 2.9.0 for the past 2 years for sending my customer's Envelope, and In the envelope, I was using note along with the Approve Tab. Till now I was able to add HTML tags in note and it was working perfectly. But recently due to some new requirements, I upgraded my SDK version to 3.X. And since then Html tags are not working in the notes and are displayed as normal text. Attached is the screenshot for both versions note.

Java Code for the Notes
Note note = new Note();
note.setDocumentId(documentId);
note.setRecipientId(recipientId);
note.setTabLabel(userType + "_" + recipientId + "_approvenote");
note.setPageNumber(pdfFormApproveButton.getPageNumber());
note.setXPosition(String.valueOf(Math.max((Integer.parseInt(pdfFormApproveButton.getxPosition()) - 250), 50)));
note.setYPosition(String.valueOf(Integer.parseInt(pdfFormApproveButton.getyPosition()) - 80));
note.setFont("Helvetica");
note.setFontSize("Size14");
note.setBold("true");
note.setHeight("70");
note.setWidth("500");
note.setValue("Clicking the Approve button will send the offer to the seller(s) for eSignatures. If you would like to edit the contract or make a counter-offer, then Click Here");

2 9 0

3 6 0

@mmallis87 mmallis87 added the area-swagger Swagger Spec label Apr 21, 2022
@pablomdstest
Copy link

pablomdstest commented May 29, 2022

Hello ukediapropshub,

Thank you for contacting DocuSign Customer Support regarding notes in java sdk 3.
Actually after a lot of research with one of our colleges and the installation of Eclipse with docusign in a java maven project and adding the docusign dependency:

< dependency >
          < groupId >com.docusign
          < artifactId>docusign-esign-java< /artifactId >
          < version>3.18.0< /version >
< /dependency >

We were able to see that the parameter to populate the Note it's not a Note object, but a String object, so that's why it's not getting the right formatting. This is in the actual documentation. We can still compile and run it passing the Note object, at it seems to be overpopulated. But also getting just the note with the text.

We haven't found any documentation from the change, we already ask our supervisors to check on this too, so we will be giving you a more detailed information soon.

I think this was disable because of the html and code injection think, that can be done, since it's pure html, or they just have disable it, another way would be to inject the html, but seems that if disable, it won't display anyway. This is only my thoughts on this.

Now my college found also that, seems to be a new approach for the formatting of the note, in this link, at the note level, they point setting parameters to true will change the behavior, like font, bold, and size. But it doesn't show any link. Now the question, is if in the pass version this was allowed, or if was just html enabled.

https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/enveloperecipienttabs/create/#parameters_note

Either way, it's very interesting how this is not available anymore, we will continue in research to give a definitely answer on this and/or if they can give us an answer or implement a link feature would be nice.

Let's check on this, and if you have any other question let me know.

Best regards,

Pablo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-swagger Swagger Spec
Projects
None yet
Development

No branches or pull requests

3 participants