/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[b9847023-0368-4713-bf63-a9a1315ba29a]. TECHNOTE: all serverside (paths, dynamic values) of EPiServerForms will be transfered to client side here in this section. */ (function initializeOnRenderingFormDescriptor() { // each workingFormInfo is store inside epi.EPiServer.Forms, lookup by its FormGuid var workingFormInfo = epi.EPiServer.Forms["b9847023-0368-4713-bf63-a9a1315ba29a"] = { Id: "b9847023-0368-4713-bf63-a9a1315ba29a", Name: "Cert of excellence nomination form", // whether this Form can be submitted which relates to the visitor's data (cookie, identity) and Form's settings (AllowAnonymous, AllowXXX) SubmittableStatus : {"submittable":true,"message":""}, ConfirmMessage : "", ShowNavigationBar : true, ShowSummarizedData : false, // serialize the dependency configuration of this form to clientside DependenciesInfo : [], // keep all fieldName which are not satisfied the field dependency conditions DependencyInactiveElements: [], // Validation info, for executing validating on client side ValidationInfo : [{"targetElementName":"__field_143249","targetElementId":"3d48c2b1-52b2-4533-a74f-87b8a8966274","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_143250","targetElementId":"dcdeb9be-f057-4cdf-b39e-500e6bf348d5","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_143251","targetElementId":"a6a05abf-3b1a-476d-8c7d-386ad2f199e1","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}},{"type":"EPiServer.Forms.Implementation.Validation.EmailValidator","description":null,"model":{"jsPattern":"(^$)|(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)","dotNetPattern":"(^$)|(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)","message":"Enter a valid email address.","validationCssClass":null,"additionalAttributes":null}}]},{"targetElementName":"__field_143245","targetElementId":"866c29eb-8b2f-425b-9489-abd64cebd149","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_143246","targetElementId":"5e678a6c-8166-48ed-8fc2-ad5556c9520b","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_143257","targetElementId":"5b7b2817-836a-42e5-a5b8-6acc5300b694","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_143454","targetElementId":"184e7baf-0b4c-4ccf-ac42-e253aece3ad3","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_143290","targetElementId":"73fda04c-5003-4cb3-ac70-237667b47f74","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}},{"type":"EPiServer.Forms.Implementation.Validation.EmailValidator","description":null,"model":{"jsPattern":"(^$)|(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)","dotNetPattern":"(^$)|(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)","message":"Enter a valid email address.","validationCssClass":null,"additionalAttributes":null}}]},{"targetElementName":"__field_143244","targetElementId":"75792dd3-e6e9-480c-9a6b-599ed232561e","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_164852","targetElementId":"e708143f-97e2-4582-b3ee-7c6d7586ea4a","validators":[{"type":"EPiServer.Forms.Implementation.Validation.EmailValidator","description":null,"model":{"jsPattern":"(^$)|(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)","dotNetPattern":"(^$)|(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)","message":"Enter a valid email address.","validationCssClass":null,"additionalAttributes":null}}]},{"targetElementName":"__field_143291","targetElementId":"3ed28ed7-1861-4a67-a8db-ff2e7635d518","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}},{"type":"EPiServer.Forms.Implementation.Validation.DateMMDDYYYYValidator","description":null,"model":{"jsPattern":"^(((0[13578]|1[02])\\/(0[1-9]|[12]\\d|3[01])\\/((19|[2-9]\\d)\\d{2}))|((0[13456789]|1[012])\\/(0[1-9]|[12]\\d|30)\\/((19|[2-9]\\d)\\d{2}))|(02\\/(0[1-9]|1\\d|2[0-8])\\/((19|[2-9]\\d)\\d{2}))|(02\\/29\\/(19|[2-9]\\d)([02468][048]|[13579][26])))$","dotNetPattern":"^(((0[13578]|1[02])\\/(0[1-9]|[12]\\d|3[01])\\/((19|[2-9]\\d)\\d{2}))|((0[13456789]|1[012])\\/(0[1-9]|[12]\\d|30)\\/((19|[2-9]\\d)\\d{2}))|(02\\/(0[1-9]|1\\d|2[0-8])\\/((19|[2-9]\\d)\\d{2}))|(02\\/29\\/(19|[2-9]\\d)([02468][048]|[13579][26])))$","message":"Enter a date in the MM/DD/YYYY format.","validationCssClass":null,"additionalAttributes":null}}]},{"targetElementName":"__field_143302","targetElementId":"6d404633-9b0d-463a-bdcb-f0ca064badea","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_143303","targetElementId":"320899d3-bf0f-4910-9230-ef16ada0e67f","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_143253","targetElementId":"fccd83ba-b183-431a-bea1-8e9f45be8aab","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_143306","targetElementId":"c0327434-7ff6-4967-8b5b-9de96b7e7460","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]}], // Steps information for driving multiple-step Forms. StepsInfo : { Steps: [{"index":0,"attachedUrl":"","dependField":null,"dependCondition":null,"isActive":true,"attachedContentLink":"","dependValue":null,"elementName":"__field_143453","guid":"dbb80ca3-8e5c-4feb-a29a-94dd80affcfe"},{"index":1,"attachedUrl":"","dependField":null,"dependCondition":null,"isActive":true,"attachedContentLink":"","dependValue":null,"elementName":"__field_143455","guid":"33b567e7-8269-4304-83be-9904fd336201"},{"index":2,"attachedUrl":"","dependField":null,"dependCondition":null,"isActive":true,"attachedContentLink":"","dependValue":null,"elementName":"__field_143456","guid":"2c0f658b-2ab7-4d7f-983d-3eff4de5427e"}] }, FieldsExcludedInSubmissionSummary: [], ElementsInfo: {"__field_143248":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"Title","customBinding":false},"__field_143249":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"First name","customBinding":false},"__field_143250":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Last name","customBinding":false},"__field_143251":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Email","customBinding":false},"__field_143245":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"University","customBinding":false},"__field_143246":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Department","customBinding":false},"__field_143257":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Name of recipient one","customBinding":false},"__field_143454":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Reasons for nominating recipient one","customBinding":false},"__field_143290":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Email address of student one","customBinding":false},"__field_143244":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"Award choice","customBinding":false},"__field_164849":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Name of recipient two","customBinding":false},"__field_164850":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Reasons for nominating recipient two","customBinding":false},"__field_164852":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Email address of student two","customBinding":false},"__field_143291":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"When would you like to receive the Certificate(s) and prize?","customBinding":false},"__field_143302":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Shipping information","customBinding":false},"__field_143303":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"Media and publicity","customBinding":false},"__field_143256":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Do you have any questions or special requests?","customBinding":false},"__field_143252":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Ts&Cs","customBinding":false},"__field_143253":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Ts&Cs tick box","customBinding":false},"__field_143304":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Ts&Cs part 2","customBinding":false},"__field_143306":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"contact tick box","customBinding":false},"__field_143254":{"type":"EPiServer.Forms.Implementation.Elements.SubmitButtonElementBlock","friendlyName":"submit button","customBinding":false}}, DataSubmitController: "/EPiServer.Forms/DataSubmit" }; /// TECHNOTE: Calculation at FormInfo level, and these values will be static input for later processing. workingFormInfo.StepsInfo.FormHasNoStep_VirtualStepCreated = false; // this FLAG will be true, if Editor does not put any FormStep. Engine will create a virtual step, with empty GUID workingFormInfo.StepsInfo.FormHasNothing = false; // this FLAG will be true if FormContainer has no element at all workingFormInfo.StepsInfo.AllStepsAreNotLinked = true; // this FLAG will be true, if all steps all have contentLink=="" (emptyString) })();