/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[e1d48ae3-8d52-4d0b-ba7c-b2756d08cf14]. 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["e1d48ae3-8d52-4d0b-ba7c-b2756d08cf14"] = { Id: "e1d48ae3-8d52-4d0b-ba7c-b2756d08cf14", Name: "Criminal Justice Watertown Button", // 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 : true, // Validation info, for executing validating on client side ValidationInfo : [{"targetElementName":"__field_10100","targetElementId":"52389b3b-37ed-49fe-82fe-0bd73ad39ba1","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":null}}]},{"targetElementName":"__field_10101","targetElementId":"2426a2c7-b21e-40ce-983e-b685c963ab71","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":null}}]},{"targetElementName":"__field_10103","targetElementId":"7df0221a-5517-4635-94a9-b630bc13c762","validators":[{"type":"EPiServer.Forms.Implementation.Validation.NumericValidator","description":null,"model":{"message":"Enter a valid number.","validationCssClass":null,"additionalAttributes":null}},{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":null}}]},{"targetElementName":"__field_10102","targetElementId":"dde09436-9f23-43b6-beca-56823306e83e","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":null}}]},{"targetElementName":"__field_10105","targetElementId":"50e7b5be-7eea-4b0d-8aeb-28bb75d4779b","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","description":""}] }, FieldsExcludedInSubmissionSummary: [], ElementsInfo: {"__field_10100":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"First Name","customBinding":false},"__field_10101":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Last Name","customBinding":false},"__field_10103":{"type":"EPiServer.Forms.Implementation.Elements.NumberElementBlock","friendlyName":"Number","customBinding":false},"__field_10102":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Text","customBinding":false},"__field_10106":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Questions? Comments?","customBinding":false},"__field_10104":{"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 = 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) })();