<% var fileindex = 1; for (var cnt = 0; cnt < dataAttributes.length; cnt++) {%> <% var arrayEntry = dataAttributes[cnt]; var label = arrayEntry.Name; var fieldID = arrayEntry.Name; var mandatoryField = "wiz_text_field_form_input"; var disabled = ""; var buttonClass = "button_secondary"; var fileType = ""; var showFileUpload = false; if (arrayEntry.ReadOnly) { disabled = "disabled"; buttonClass = "button_disabled"; } if (arrayEntry.Name == "userCertificate") { fileType = ".crt,.cer"; showFileUpload = true; } else if (arrayEntry.Name == "photo" || arrayEntry.Name == "jpegPhoto") { fileType = "image/*"; showFileUpload = true; } else if (arrayEntry.Name == "audio") { fileType = "audio/*"; showFileUpload = true; } %> <% } %>
<%= label %> <% if (showFileUpload) { %>
> >
<%fileindex ++;%> <% } else if (arrayEntry.MultipleValue) {%> <% } else if (arrayEntry.ArrayPossibility) { %> <% } else { %> > <% } %>