I've modified a Submit form datapage (accessed as a popup in a Fancy Box from a Tabular datapage) that normally closes and refreshes it's parent page (the tabular datapage).
This is the code in the Destination section of the Submission datapage:
<script>
setTimeout(function(){ window.parent.location.reload();window.parent.jQuery.fancybox.close();}, 2000);
</script>
On the new Submit datapage I need it to go to a defined url (with parameters passed) but cannot get the code to work. I'm using:
setTimeout(function(){ window.parent.location.href='../my-webpage?PID=[@fi