Browse Source

A page that allows form generation in cases of error

Andrej Studen 1 year ago
parent
commit
e5f19a4fa8
1 changed files with 17 additions and 0 deletions
  1. 17 0
      views/formGenerator.html

+ 17 - 0
views/formGenerator.html

@@ -0,0 +1,17 @@
+<div id="formDiv">
+</div>
+
+<script type "text/javascript">
+window.onload=loadScripts;
+
+function loadScripts(){
+  LABKEY.requiresScript(["crf/formGenerator.js"],init);
+}
+
+function init(){
+   console.log('Here form generator');
+   //participantPortal.searchParams=new URLSearchParams(window.location.search);
+   let action=function(){ formGenerator.addGenerator();};
+   formGenerator.init(action);
+}
+</script>