My Forms > View Form: Not working for Custom URL forms
-
veshmanAsked on October 21, 2016 at 04:13 PM
Hi, thanks for the quick support. My "View Form" button resolves to :
but it's a blank page, no form is displayed
here is the source code of the page:
<body>
<script>
function getParameterByName(name)
{
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(window.location.search);
if(results == null)
return "";
else
return decodeURIComponent(results[1].replace(/\+/g, " "));
}
// when popup is blocked, chrome executes these scripts so we need to check for window inner height
//
if (window.innerHeight !== undefined || window.innerHeight != 0)
window.opener.popupAlive();
var targetDestination = getParameterByName("target");
if(targetDestination.toLowerCase().startsWith('http://form.jotform') || targetDestination.toLowerCase().startsWith('https://form.jotform'))
window.location.href = getParameterByName("target");
</script>
</body>
-
MikeAnswered on October 21, 2016 at 04:21 PM
The issue has been escalated to our developers.
We will let you know once it is fixed.
-
evrenAnswered on October 25, 2016 at 02:38 AMDirector of Engineering, Growth
Hi veshman,
Sorry for the inconvenience caused. The problem should be fixed now.
If you have any further questions please do not hesitate to contact us.
-
veshmanAnswered on October 25, 2016 at 07:12 PM
Thanks!