/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[369520ab-01e9-40ed-aaca-d0c737b94c0d]. 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["369520ab-01e9-40ed-aaca-d0c737b94c0d"] = { Id: "369520ab-01e9-40ed-aaca-d0c737b94c0d", Name: "Honors Recommendation", // 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 : "Thank you! We've received your recommendation. It will be included for consideration.", ShowNavigationBar : true, ShowSummarizedData : false, // serialize the dependency configuration of this form to clientside DependenciesInfo : [], // keep all fieldName which are not satisfied the dependency conditions DependencyInactiveElements: [], // Validation info, for executing validating on client side ValidationInfo : [{"targetElementName":"__field_287647","targetElementId":"0937ba51-9fd2-46eb-98e9-84606ad0bf95","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_287648","targetElementId":"6f932498-2390-43bc-9370-383fa18f280b","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_287649","targetElementId":"903f10cf-fbfd-4fdb-9cb4-4d4442808951","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_64650","targetElementId":"a8e8033e-06eb-4065-b6c1-ae45d2982512","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_64652","targetElementId":"fb08e611-8257-42aa-8c22-64274b074190","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_64654","targetElementId":"b29e0db8-f517-4f07-9011-47ce0033e14c","validators":[{"type":"EPiServer.Forms.Implementation.Validation.CaptchaValidator","description":null,"model":{"message":"Enter the characters you see in the picture.","validationCssClass":null,"additionalAttributes":null}}]}], // Steps information for driving multiple-step Forms. StepsInfo : { Steps: [{"index":0,"attachedUrl":"","dependField":null,"dependCondition":null,"attachedContentLink":"","dependValue":"","elementName":"__field_","guid":"00000000-0000-0000-0000-000000000000"}] }, FieldsExcludedInSubmissionSummary: [], ElementsInfo: {"__field_287647":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"First Name","customBinding":false},"__field_287648":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Last Name","customBinding":false},"__field_287649":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Email","customBinding":false},"__field_64650":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Artist First Name","customBinding":false},"__field_64652":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Artist Last Name","customBinding":false},"__field_64653":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Why this person?","customBinding":false},"__field_64655":{"type":"EPiServer.Forms.Implementation.Elements.SubmitButtonElementBlock","friendlyName":"Submit","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 = true; // 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) })();