/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[ebdcb1a2-dbf3-4ea9-8af5-1f0d163008f5]. 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["ebdcb1a2-dbf3-4ea9-8af5-1f0d163008f5"] = { Id: "ebdcb1a2-dbf3-4ea9-8af5-1f0d163008f5", 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_14506","targetElementId":"3b9eff85-55cc-4b8f-9fb8-c3174352a002","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter your Name.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_14507","targetElementId":"3f0c68f6-fad0-447b-a4d2-cb5d11496f17","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_14504","targetElementId":"ef2251b7-3e72-496d-8131-1e49b3e23f1d","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_14508","targetElementId":"32ce7e14-3b72-4be9-8f82-2a291828545f","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter your City.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_14511","targetElementId":"3874fce7-a0f8-4866-b604-1281b5a4d0bc","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please include your Comments.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_18228","targetElementId":"8d61a837-cfdb-4947-8bcd-6698bf39f57d","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_14502":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Top rich text","customBinding":false},"__field_14506":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"Name","customBinding":false},"__field_14507":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"E-mail address","customBinding":false},"__field_14504":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.TextboxMatchBlock","friendlyName":"Verify e-mail address","customBinding":false},"__field_14508":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"City","customBinding":false},"__field_14511":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.TextAreaWithCounterRequiredBlock","friendlyName":"Comments","customBinding":false},"__field_14501":{"type":"EPiServer.Forms.Implementation.Elements.SubmitButtonElementBlock","friendlyName":"Form Submit","customBinding":false},"__field_14500":{"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) })();