/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[373047e4-e150-4dad-85c6-798eb428073a]. 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["373047e4-e150-4dad-85c6-798eb428073a"] = { Id: "373047e4-e150-4dad-85c6-798eb428073a", Name: "Testimonial", // 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_14549","targetElementId":"2e779d33-739f-4578-ae3e-98b0ff044cf2","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter your Name.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_14550","targetElementId":"7bd9eab9-2b7f-4abb-9aa7-c9cb8dd21aac","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter your Email Address.","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_14547","targetElementId":"39c23d3b-d38d-43fe-9542-8cf2b4d4f945","validators":[{"type":"VerifyEmailValidator","description":null,"model":{"message":"Please verify your Email Address by entering exactly (it's case sensitive) as above.","validationCssClass":null,"additionalAttributes":null}}]},{"targetElementName":"__field_14551","targetElementId":"1c46d8fc-d1dd-4916-9fb9-729d89434e53","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter your City.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_14555","targetElementId":"4da90ad9-1a77-419a-9b5f-c86be91c33d6","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please include your Comments.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_18230","targetElementId":"c9271088-268a-4f50-a4eb-90da7527fb44","validators":[{"type":"EPiServer.Forms.Samples.Implementation.Validation.RecaptchaValidator","description":null,"model":{"message":"Invalid reCAPTCHA value, please try again.","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_14545":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Top rich text","customBinding":false},"__field_14549":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"Name","customBinding":false},"__field_14550":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"E-mail address","customBinding":false},"__field_14547":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.TextboxMatchBlock","friendlyName":"Verify e-mail address","customBinding":false},"__field_14551":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"City","customBinding":false},"__field_14555":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.TextAreaWithCounterRequiredBlock","friendlyName":"Comments","customBinding":false},"__field_14544":{"type":"EPiServer.Forms.Implementation.Elements.SubmitButtonElementBlock","friendlyName":"Form Submit","customBinding":false},"__field_14543":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Text Field","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) })();