/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[a2c8f002-8753-4dd6-8b3b-f0e4e0b99365]. 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["a2c8f002-8753-4dd6-8b3b-f0e4e0b99365"] = { Id: "a2c8f002-8753-4dd6-8b3b-f0e4e0b99365", Name: "Library enquiry 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_30523","targetElementId":"937a9fa2-56c1-4c5c-ab71-eb8df7609dbc","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_30524","targetElementId":"a4d07888-9508-4fc5-b27d-2efd7a120e88","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_30525","targetElementId":"876a8257-522f-4ec2-9ae4-9a757911062a","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_30530","targetElementId":"58385b3a-a12e-492c-8ce4-d68e53a21630","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_30531","targetElementId":"25ff58f2-2b53-45a7-9c39-0a8769b345b7","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_30534","targetElementId":"e5d6c673-a1cb-438c-868f-528153f9290a","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_30535","targetElementId":"ab5969fb-c715-4211-a092-26a514a32c7b","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_30538","targetElementId":"38ced5d0-72a7-4a19-b72a-e505e7c55d6f","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":"","elementName":"__field_","guid":"00000000-0000-0000-0000-000000000000"}] }, FieldsExcludedInSubmissionSummary: [], ElementsInfo: {"__field_30523":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"Title","customBinding":false},"__field_30524":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"First name","customBinding":false},"__field_30525":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Last name","customBinding":false},"__field_30526":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Company","customBinding":false},"__field_30527":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Address","customBinding":false},"__field_30528":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"City","customBinding":false},"__field_30529":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Postal/zip code","customBinding":false},"__field_30530":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Country","customBinding":false},"__field_30531":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"RSC member","customBinding":false},"__field_30532":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Membership number","customBinding":false},"__field_30533":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Telephone","customBinding":false},"__field_30534":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Email","customBinding":false},"__field_30535":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Enquiry details","customBinding":false},"__field_30536":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"paragraph-text-element-block-1","customBinding":false},"__field_30538":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Terms","customBinding":false},"__field_30537":{"type":"EPiServer.Forms.Implementation.Elements.SubmitButtonElementBlock","friendlyName":"submit-button-element-block-1","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) })();