/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[d5d33d65-47b2-49aa-838f-d45f165fd281]. 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["d5d33d65-47b2-49aa-838f-d45f165fd281"] = { Id: "d5d33d65-47b2-49aa-838f-d45f165fd281", Name: "HCC Contact 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 : "Thank you for contacting us.  We will review your submission and respond shortly. ", 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_50958","targetElementId":"8c26f4ac-87de-469b-9b15-b9820b04c70c","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_50959","targetElementId":"0dbf5622-9beb-4ccd-a4b4-1d4c972ca4a6","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_50960","targetElementId":"32c290fe-e679-4393-a46e-36d5611154e4","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_50962","targetElementId":"47a92f94-f3cd-488f-95f5-c3238a1ad3e0","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}},{"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_50964","targetElementId":"3c85a236-2b31-459f-ab7d-34a17831e817","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_50965","targetElementId":"db5eb965-90c3-440c-bac5-75d56024381d","validators":[{"type":"High.Net.Web.Business.FormElements.Validation.RecaptchaValidator","description":null,"model":{"message":"Please verify that you are not a robot.","validationCssClass":null,"additionalAttributes":null}}]}], // 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_50958":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"First Name","customBinding":false},"__field_50959":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Last Name","customBinding":false},"__field_50960":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Company Name","customBinding":false},"__field_50961":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Job Title","customBinding":false},"__field_50962":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Email Address","customBinding":false},"__field_50963":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Phone Number","customBinding":false},"__field_50964":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"How Can We Help?","customBinding":false},"__field_50967":{"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) })();