[英]how to open docusign clickwrap on a button click?
I am trying to use docusign clickwrap codes into my project.我正在尝试在我的项目中使用 docusign clickwrap 代码。 Whenever user click a button, then docusing clickwrap things should comes up.
每当用户单击一个按钮时,就会出现记录点击包装的事情。
But, if I use below code, It will directly opens clickwrap.但是,如果我使用下面的代码,它会直接打开 clickwrap。 How can I call ds-click using button click?
如何使用按钮点击调用 ds-click?
eg.例如。
<button id="ds-click">click me</button>
<div id="ds-clickwrap"></div>
<script src="https://demo.docusign.net/clickapi/sdk/latest/docusign-click.js">
</script>
<script>
docuSignClick.Clickwrap.render({
environment: 'https://demo.docusign.net',
accountId: 'XXXXXXXXXXXXXXXXXXXXXXXX',
clickwrapId: 'XXXXXXXXXXXXXXXXXX',
clientUserId: '4x-2x4',
documentData: {
fullName: 'jason',
email: 'jasion1243@gmail.com',
company: 'xyz',
title: 'Backend-Developer',
date: '19/02/2023'
}
}, '#ds-clickwrap');
The code that you have in there ( docuSignClick.Clickwrap.render
...) is the code that shows the elastic template (formarly knonw as a clickwrap).您在其中的代码 (
docuSignClick.Clickwrap.render
...) 是显示弹性模板的代码(以前称为 clickwrap)。
You can have this snippet of JavaScript called from anywhere you want in order to show the elastic template.您可以从任何您想要的地方调用 JavaScript 的这个片段,以显示弹性模板。
If you want it as a result of someone clicking a button, you can use the onclick()
event like this:如果您希望它是有人点击按钮的结果,您可以像这样使用
onclick()
事件:
<script src="https://demo.docusign.net/clickapi/sdk/latest/docusign-click.js">
<button onclick="docuSignClick.Clickwrap.render(...)">Click me</button>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.