Reputation: 5
I'm trying to set multiple returnUrl's to redirect given the different event outcomes. I am embedding the document. I am using this block of code:
"returnUrl" => "http://localhost/docusign/thank-you?event=signing_complete"
I've tried to add multiple returnUrl's, but that returns the last one in the array (for example, decline), even when the event=signing_complete.
Thanks in advance!
Upvotes: 0
Views: 302
Reputation: 4441
If you are setting landing pages for just an envelope, you're going to have to redirect to your site and handle the "multiple redirects" from there with the event url paramater.
Quick Sample Redirect Page in PHP/JS:
<?
if(isset($_GET['event'])){
if($_GET['event']=='decline')
$link = 'www.companysite.com';
else
$link = 'www.companysite.com/default';
}else{
$link = 'www.google.com';
}
?>
<script type="text/javascript">window.top.location.href='<?echo $link;?>'</script>
You can set in-session landing pages in Preferences > Features > In session landing pages
Upvotes: 1