Avoid the white screen

From SMTX Wiki
Revision as of 07:47, 17 September 2024 by Smtxwiki (talk | contribs) (Created page with "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=") <...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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