//namespace var formGenerator={}; formGenerator.set= function(parentClass){ this.parent=parentClass; } formGenerator.addFormGenerator= function(){ //parentClass should provide config and print and getContainer let config=this.parent.config; let fName='[addFormGenerator]'; this.parent.print(fName); //layout let table=config.document.createElement("table"); table.className="t2"; config.document.getElementById(config.div).appendChild(table); //this is a form manipulator let fgForm=new Object(); fgForm.formSelect=this.addInputRow(table,'Select form',"select"); fgForm.crfSelect=this.addInputRow(table,'Select CRF',"select"); fgForm.comment=this.addInputRow(table,'Enter comment','text'); fgForm.details=this.addInputRow(table,'Details','label'); fgForm.warnings=this.addInputRow(table,'Warnings','label'); fgForm.warnings.innerHTML='formGenerator version 2.1.0'; this.addOption(fgForm.formSelect,'