You are viewing limited content. For full access, please sign in.

Question

Question

Forms - force changing the URL eliminates the ability to save a copy of the form

asked on November 20, 2018 Show version history

Why does this code at the top of the javascript section remove the ability to save or email copies of the form. Any copies of the form saved, will just be a blank page.

 


 
  if (location.href.indexOf("http://") == -1) { 
 location.href = location.href.replace("https://", "http://"); 
}

The goal here is to force non-secure connections, so that we can transfer non-secure data to non-secure services. Modern browsers do not allow for mixed security, if your website is encrypted, all transmission must be encrypted. This works perfectly, but prevents saving any copies of the form.

0 0

Replies

replied on November 28, 2018 Show version history

Hi Chad,

Did you have "Use SSL connection" option checked for the Primary Forms Server URL option? Can you disable this option? I tried disabling the option and forms copies could be saved.

When saving forms copies it would get the form using the Primary Forms Server URL. If the URL is configured with SSL, it would trigger the script, but since it's not in a browser it would not reload successfully.

If you do need the option to be checked, you can update your script to not run when printing. The condition could be window.isPrintMode

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.