Skip to content

Commit

Permalink
Fixing issues related to the Web Forms API example.
Browse files Browse the repository at this point in the history
  • Loading branch information
InbarGazit committed Oct 25, 2024
1 parent fda9c0c commit 6cf09c9
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 622 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ public static EnvelopeTemplate prepareEnvelopeTemplate(String templateName, Stri
.tabLabel("Yes")
.anchorString("/SMS/")
.anchorUnits("pixels")
.anchorXOffset("20")
.anchorYOffset("10")
.anchorXOffset("0")
.anchorYOffset("0")
))
.signHereTabs(List.of(
new SignHere()
Expand All @@ -121,38 +121,38 @@ public static EnvelopeTemplate prepareEnvelopeTemplate(String templateName, Stri
.tabLabel("FullName")
.anchorString("/FullName/")
.anchorUnits("pixels")
.anchorXOffset("20")
.anchorYOffset("10"),
.anchorXOffset("0")
.anchorYOffset("0"),
new Text()
.documentId("1")
.tabLabel("PhoneNumber")
.anchorString("/PhoneNumber/")
.anchorUnits("pixels")
.anchorXOffset("20")
.anchorYOffset("10"),
.anchorXOffset("0")
.anchorYOffset("0"),
new Text()
.documentId("1")
.tabLabel("Company")
.anchorString("/Company/")
.anchorUnits("pixels")
.anchorXOffset("20")
.anchorYOffset("10"),
.anchorXOffset("0")
.anchorYOffset("0"),
new Text()
.documentId("1")
.tabLabel("JobTitle")
.anchorString("/Title/")
.anchorUnits("pixels")
.anchorXOffset("20")
.anchorYOffset("10")
.anchorXOffset("0")
.anchorYOffset("0")
))
.dateSignedTabs(List.of(
new DateSigned()
.documentId("1")
.tabLabel("DateSigned")
.anchorString("/Date/")
.anchorUnits("pixels")
.anchorXOffset("20")
.anchorYOffset("10")
.anchorXOffset("0")
.anchorYOffset("0")
))
);

Expand Down
606 changes: 1 addition & 605 deletions src/main/resources/web-form-config.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/main/webapp/WEB-INF/templates/views/pages/ds_return.jsp
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="../partials/head.jsp"/>

<h2>Returned data from DocuSign!</h2>
<h2>Returned data from Docusign!</h2>
<p>Data:</p>

<c:if test="${event != null}">
<p><strong>event: ${event}.</strong> This event parameter is supplied by DocuSign via the redirect URL.
<p><strong>event: ${event}.</strong> This event parameter is supplied by Docusign via the redirect URL.
Since it could have been spoofed, don't make business decisions based on
its value. Instead, query DocuSign as appropriate.</p>
</c:if>

<c:if test="${qpEnvelopeId != null}">
<p><strong>envelopeId: ${qpEnvelopeId}.</strong> The envelopeId parameter is supplied by DocuSign.</p>
<p><strong>envelopeId: ${qpEnvelopeId}.</strong> The envelopeId parameter is supplied by Docusign.</p>
</c:if>

<c:if test="${state != null}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<body>
<div id="app">
<div id="webform-customer-app-area">
<h5 id="webforms-heading">The web form has been embedded below using the DocuSign.js library.</h5>
<h5 id="webforms-heading">The web form has been embedded below using the Docusign JS library.</h5>
<div id="docusign" class="webform-iframe-container">
<p>Web Form will render here</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<c:when test="${templateId != null}">
<c:forEach var="page" items="${example.getAdditionalPage()}">
<c:if test="${page.getName() == 'create_web_form'}">
<p>${page.getResultsPageText()}</p>
<p>${page.getResultsPageText().replaceFirst("\\{0}", "src/main/resources")}</p>
</c:if>
</c:forEach>
<form class="eg" action="" method="post" data-busy="form">
Expand Down

0 comments on commit 6cf09c9

Please sign in to comment.