diff --git a/index.html b/index.html index eb21ea7..ea34dc4 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,6 @@ +
A red asterisk (*) + indicates a required field
${fieldObject["content"]}
`, - label: fieldName, + label: label, customClass: fieldObject["className"], refreshOnChange: false, key: fieldName, @@ -260,11 +260,20 @@ function createComponent(fieldName, fieldObject, requiredArray) { } // Adds heading containing schema information -function createFormHeading(title, description) { +function createFormHeading(agency) { + const agencyTitle = (agency === "gov") ? agency.charAt(0).toUpperCase() + agency.slice(1) : agency.toUpperCase(); + const agencyDescription = (agency !== "gov") ? agencyTitle : agency; + const container = document.getElementById('form-header'); container.innerHTML = ` -