控制如何打开“完成” URL-iframe中的DocuSign [英] Control how “Finish” URL is openened - DocuSign in an iframe
问题描述
我在Salesforce社区页面中显示DocuSign Powerform。当用户在DocuSign表单上单击完成时,我希望在父窗口中打开完成URL(已在DocuSign设置中配置),而不是在iframe中打开。
I am displaying a DocuSign powerform inside a Salesforce Community page. When the user clicks "Finish" on the DocuSign form, I want the finish URL (which I’ve configured in the DocuSign settings) to open in the parent window - NOT inside the iframe.
我看到了一些建议,可以将具有target = _parent的代码添加到iframe HTML中,但是我尝试了几种不同的方法,但均未成功。有没有人做过,如果是的话-语法应该如何看待?或者-也许有一种方法可以将JavaScript放入DocuSign URL字段中?
I’ve seen suggestions that I might add the tag with target = _parent to my iframe HTML, but I’ve tried this a couple of different ways without success. Has anyone done this, and if so - exactly how should the syntax look? Or - perhaps there’s a way to put JavaScript into the DocuSign URL field?
我希望我不需要做比iframe(即嵌入式签名)还要复杂的事情。
I’m hoping I don’t need to do something more complex than an iframe (I.e., embedded signing) to accomplish this.
推荐答案
当前重定向到的页面,添加Javascript,如下所示:
The page you currently redirect to, add Javascript like this:
window.top.location.href = "http://www.example.com";
此处的.top部分表示父iframe,然后您可以将其切换到任意页面想要。
The .top part here, means the parent iframe, and then you can switch it to whatever page you want.
这篇关于控制如何打开“完成” URL-iframe中的DocuSign的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!