@@ -218,10 +218,13 @@ function(el,formList,roleAndSite,formId=null,idLabel=null){
crfHTML.createParagraph(text[j],null,fbox);
}
- if (n>0) return table;
if (!formId) return table;
+ let formEntry=crfSetup.getEntryMap('dataForms')[formId];
+ this.print(fName+' unique '+formEntry['unique']);
- //always add empty form
+ if (n>0 && formEntry['unique']=='TRUE') return table;
+
+ //add empty forms for absent records and non-unique records
//should not be allowed to create new forms
let regFormId=crfSetup.getSettings('registrationFormId');