My Forms > View Form: Not working for Custom URL forms

  • Profile Image
    veshman
    Asked on October 21, 2016 at 04:13 PM

    Hi, thanks for the quick support. My "View Form" button resolves to :

     

    https://www.jotform.com/myforms3/opt/PopupTest.php?target=https%3A%2F%2Fwww.jotform.com%2Fveshman%2FOHC-intake

     

    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>

  • Profile Image
    Mike
    Answered 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.

  • Profile Image
    evren
    Answered on October 25, 2016 at 02:38 AM

    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.

  • Profile Image
    veshman
    Answered on October 25, 2016 at 07:12 PM

    Thanks!