Avoid the white screen

From SMTX Wiki
Jump to navigation Jump to search

When the app isused to show a form, you sometimes get a whitescreen after submitting the form (as a user). THerefor, update the COntent of the page 'redirect-after-submit) to: <script language="javascript" type="text/javascript">

   if (window.top.location.search && window.top.location.search.length > 0) {
       window.top.location.search = "?" + window.top.location.search.substring(1).split('&').filter(function (currentsearch) { return currentsearch.indexOf("tab=") < 0; }).concat("tab=app-#APPID#").join("&");
   } else {
       window.top.location.search = "?tab=app-#APPID#";   
   }
   window.top.location.reload();

</script>

examples: Jessa-Zol