/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[8b2e54e6-76ec-4e45-9c5e-362def0230e1]. 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["8b2e54e6-76ec-4e45-9c5e-362def0230e1"] = { Id: "8b2e54e6-76ec-4e45-9c5e-362def0230e1", Name: "Energy Education Request", // 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_14402","targetElementId":"b1d34907-f3c9-4240-ba47-cde5755bf11d","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please Enter Name of the Group.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_14403","targetElementId":"91a28c6a-8502-471d-88be-c3ae5f124349","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please Enter a Contact Name.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_14405","targetElementId":"151bccbe-f98f-4bab-872b-6839265eb0e2","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_14388","targetElementId":"c0fb1113-0c8f-48c0-9ac1-06c963da9d37","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_14406","targetElementId":"5f709a6c-77bb-4835-a482-5a5173d1b885","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter a day Phone Number (ex. 123-456-7890).","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_14407","targetElementId":"95c25132-cf40-4d58-8718-cf6744273879","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter a evening Phone Number (ex. 123-456-7890).","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}},{"type":"EPiServer.Forms.Implementation.Validation.RegularExpressionValidator","description":null,"model":{"jsPattern":null,"dotNetPattern":null,"message":"Please enter a evening Phone Number (ex. 123-456-7890).","validationCssClass":null,"additionalAttributes":null}}]},{"targetElementName":"__field_14408","targetElementId":"6545b50e-a470-41ee-a5cd-e520a46701a6","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter the Target Audience.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_14416","targetElementId":"954e67b5-95dc-47af-a14d-e5e272317681","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":"Please enter the Number of Attendees.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_14412","targetElementId":"7b6db5f5-3162-4519-bbc7-08be6ae960c8","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter the Preferred Date(s).","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_14413","targetElementId":"f9c87911-0f8f-4690-8230-e77da20a965e","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter Location Address.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_18229","targetElementId":"eae013b2-20dc-4374-be02-e4749b991594","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_14384":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Top rich text","customBinding":false},"__field_14402":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"Group name","customBinding":false},"__field_14403":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"Contact name","customBinding":false},"__field_14405":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"E-mail address","customBinding":false},"__field_14388":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.TextboxMatchBlock","friendlyName":"Verify e-mail address","customBinding":false},"__field_14406":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"Phone day","customBinding":false},"__field_14407":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"Phone evening","customBinding":false},"__field_14414":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextBoxElementBlock","friendlyName":"Phone cell","customBinding":false},"__field_14408":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"Target audience","customBinding":false},"__field_14416":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomNumberTextboxRequiredElement","friendlyName":"Number of attendees","customBinding":false},"__field_14412":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"Preferred dates","customBinding":false},"__field_14415":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextBoxElementBlock","friendlyName":"Preferred time","customBinding":false},"__field_14413":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"Location address with street address and zip code","customBinding":false},"__field_14397":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Directions and other information","customBinding":false},"__field_14398":{"type":"EPiServer.Forms.Implementation.Elements.SubmitButtonElementBlock","friendlyName":"Send","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) })();