/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[73d83add-3c08-4c93-8808-93042bcf0082]. 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["73d83add-3c08-4c93-8808-93042bcf0082"] = { Id: "73d83add-3c08-4c93-8808-93042bcf0082", Name: "plugin", // 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 : [{"fieldName":"__field_13368","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_13367","operator":"Contains","fieldValue":"Yes"}]},{"fieldName":"__field_13373","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_13367","operator":"Contains","fieldValue":"No"}]},{"fieldName":"__field_13398","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_13367","operator":"Contains","fieldValue":"No"}]},{"fieldName":"__field_13381","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_13367","operator":"Contains","fieldValue":"No"}]},{"fieldName":"__field_13376","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_13367","operator":"Contains","fieldValue":"No"}]},{"fieldName":"__field_13383","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_13367","operator":"Contains","fieldValue":"No"}]},{"fieldName":"__field_13397","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_13367","operator":"Contains","fieldValue":"No"}]},{"fieldName":"__field_13392","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_13367","operator":"Contains","fieldValue":"No"}]}], // keep all fieldName which are not satisfied the field dependency conditions DependencyInactiveElements: [], // Validation info, for executing validating on client side ValidationInfo : [{"targetElementName":"__field_13366","targetElementId":"1c46311a-0029-44aa-b07a-89b36214d618","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please select whether your home currently protected by Zap Cap Systems or not.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13367","targetElementId":"ec9418e5-9c52-4fe4-8c6e-9cc717ee38f6","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please indicate if you have your Tampa Electric account number.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13368","targetElementId":"e97f3081-44e1-4b50-bb28-b5c23b9f6c97","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter a 12 digit account number starting with the number 2, 3 or 4","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}},{"type":"EPiServer.Forms.Implementation.Validation.RegularExpressionValidator","description":null,"model":{"jsPattern":"^[2-4]\\d{11}$","dotNetPattern":"^[2-4]\\d{11}$","message":"Please enter a 12 digit account number starting with the number 2, 3 or 4","validationCssClass":null,"additionalAttributes":null}}]},{"targetElementName":"__field_13376","targetElementId":"b1c1fb70-2df3-4246-85a5-dab0598522ee","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter your installation street name.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13392","targetElementId":"6f7030fa-1447-476d-9c91-6ee0a9bc51b5","validators":[{"type":"RequiredCityStateZipValidator","description":null,"model":{"message":"Please enter valid City/State/Zip","validationCssClass":null,"additionalAttributes":null}},{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter your installation City.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13369","targetElementId":"847ab00f-5458-4725-b9ad-bd21fd792f19","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter your First Name.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13371","targetElementId":"2cf233c2-ca73-407b-bf43-a4cb4427b4f3","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter your Last Name.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13372","targetElementId":"c42b8e3f-0e02-4fc7-ab68-170842c56ce5","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_13359","targetElementId":"015eaa80-c63c-4ab8-98d8-7b96868ae84d","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_13386","targetElementId":"703edbed-2ba2-4487-94f7-a6f547ced1c8","validators":[{"type":"PhoneNumberValidator","description":null,"model":{"message":"Please enter valid Phone Number","validationCssClass":null,"additionalAttributes":null}},{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter your Daytime Phone Number area code.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13387","targetElementId":"3442a5fd-e669-410b-8da5-d234bd85effd","validators":[{"type":"PhoneNumberValidator","description":null,"model":{"message":"Please enter valid Phone Number","validationCssClass":null,"additionalAttributes":null}},{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter your Evening Phone Number area code.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13393","targetElementId":"eba6e057-866b-4a02-8106-76eea1122586","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_18236","targetElementId":"db31f527-7127-47ab-a1d1-1fcefde71c3e","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_13352":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Header","customBinding":false},"__field_13366":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.ChoiceRequiredElementBlock","friendlyName":"Protected by ZapCap","customBinding":false},"__field_13399":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomFormScriptBlock","friendlyName":"Script for ZapCapSystems","customBinding":false},"__field_13367":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.ChoiceRequiredElementBlock","friendlyName":"Account Number YN","customBinding":false},"__field_13368":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"Account number","customBinding":false},"__field_13373":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"If- TE account number - No","customBinding":false},"__field_13398":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"Street number","customBinding":false},"__field_13381":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"Street direction","customBinding":false},"__field_13376":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"Street name","customBinding":false},"__field_13383":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"Street suffix","customBinding":false},"__field_13397":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextBoxElementBlock","friendlyName":"Apartment or lot number","customBinding":false},"__field_13392":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomAddressTextboxElementBlock","friendlyName":"CityStateZip","customBinding":false},"__field_13355":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"New form element","customBinding":false},"__field_13369":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"First name","customBinding":false},"__field_13371":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"Last name","customBinding":false},"__field_13372":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"E-mail address","customBinding":false},"__field_13359":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.TextboxMatchBlock","friendlyName":"Verify e-mail address","customBinding":false},"__field_13386":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomPhoneTextBoxElementBlock","friendlyName":"Daytime phone","customBinding":false},"__field_13387":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomPhoneTextBoxElementBlock","friendlyName":"Evening phone","customBinding":false},"__field_13362":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Comments","customBinding":false},"__field_13388":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Rich Text","customBinding":false},"__field_13393":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomPriceTableElementBlock","friendlyName":"Price Table","customBinding":false},"__field_13363":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Footer","customBinding":false},"__field_13364":{"type":"EPiServer.Forms.Implementation.Elements.SubmitButtonElementBlock","friendlyName":"Send Button","customBinding":false},"__field_13394":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomFormScriptBlock","friendlyName":"Data Configuration Script","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) })();