/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[174dec73-da6f-4fd1-8f65-f0ca32079f07]. 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["174dec73-da6f-4fd1-8f65-f0ca32079f07"] = { Id: "174dec73-da6f-4fd1-8f65-f0ca32079f07", Name: "Human Service Watertown - Request Info 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_9872","targetElementId":"f618f5cc-9ad6-4175-af11-fad30f179cae","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":null}}]},{"targetElementName":"__field_9873","targetElementId":"47ebb83a-23f1-45af-8ab5-e3336c0b69a0","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":null}}]},{"targetElementName":"__field_9875","targetElementId":"3dfcee10-310c-4686-b517-581d2069a022","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_9874","targetElementId":"cf88c44d-bbd5-4cdd-977b-63c8aa47da66","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":null}}]},{"targetElementName":"__field_9898","targetElementId":"d50c81b5-db65-415a-bdec-2bca8a70bf90","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_9872":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"First Name","customBinding":false},"__field_9873":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Last Name","customBinding":false},"__field_9875":{"type":"EPiServer.Forms.Implementation.Elements.NumberElementBlock","friendlyName":"Number","customBinding":false},"__field_9874":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Text","customBinding":false},"__field_9876":{"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) })();