/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[8da016ba-87bd-446a-9145-5d4562d9a141]. 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["8da016ba-87bd-446a-9145-5d4562d9a141"] = { Id: "8da016ba-87bd-446a-9145-5d4562d9a141", Name: "Tree Limbs form details", // 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_13884","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_13861","operator":"Contains","fieldValue":"Other"}]},{"fieldName":"__field_13865","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_13864","operator":"Contains","fieldValue":"Gate code required"}]},{"fieldName":"__field_13866","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_13864","operator":"Contains","fieldValue":"Key required"}]},{"fieldName":"__field_13867","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_13864","operator":"Contains","fieldValue":"Other"}]}], // keep all fieldName which are not satisfied the field dependency conditions DependencyInactiveElements: [], // Validation info, for executing validating on client side ValidationInfo : [{"targetElementName":"__field_13875","targetElementId":"8b00e4ef-c7dc-4561-b94a-42802f84d598","validators":[{"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_13859","targetElementId":"86b8e65d-595d-4df9-a450-b5d58ff388df","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_13860","targetElementId":"5b76587a-83c5-4dd2-9a1c-9e451725718f","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_13823","targetElementId":"dd167ea8-e308-454a-ba41-f4e19d834749","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_13872","targetElementId":"6f02aac1-03b1-4bf9-949c-42221d337a63","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 Phone Number.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13874","targetElementId":"6275bc89-f0ec-4e35-b45f-13ac31e5739a","validators":[{"type":"OptionalCityStateZipValidator","description":null,"model":{"message":"Please enter valid City/State/Zip","validationCssClass":null,"additionalAttributes":null}}]},{"targetElementName":"__field_13861","targetElementId":"188953a9-bbde-4074-a454-5ed02936c07c","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please select the type of problem that you are reporting.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13884","targetElementId":"82350e56-7118-4690-a813-79bae90bf596","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"You have selected an 'other' location type without entering an explanation. Please enter a location explanation.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13871","targetElementId":"9f7853bb-b77a-4cdf-a788-063c31f103fa","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please select whether you think Tampa Electric can gain access with a bucket truck.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13863","targetElementId":"55978448-3329-4256-8686-44ff025039a1","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please select one option that best describes the pole and wire setting.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13864","targetElementId":"e4d0eb12-cd37-407f-8138-e55447a391ba","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please check at least one obstruction or hazard option.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13865","targetElementId":"1c7f6463-a6ae-417a-961c-728aeeaab5e7","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter the gate code or a contact name and phone number to obtain the gate code.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13866","targetElementId":"e9fe97e0-9325-49de-b342-27cc639bd384","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter a contact name and phone number to obtain a key.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13867","targetElementId":"3987d8f0-f05f-490d-9f00-bbc842a706d3","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please provide additional information in this comment box provided.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13868","targetElementId":"ce557ac3-3025-4473-98b5-7c6fb2184e6c","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please select whether your power is being affected by the tree.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_18238","targetElementId":"ab8ed8f8-d52e-40c8-84f8-cbbb1ea54cc9","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_13799":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Top rich text","customBinding":false},"__field_13875":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextBoxElementBlock","friendlyName":"Account number","customBinding":false},"__field_13876":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextBoxElementBlock","friendlyName":"Customer name","customBinding":false},"__field_13859":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"Contact name","customBinding":false},"__field_13860":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"E-mail address","customBinding":false},"__field_13823":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.TextboxMatchBlock","friendlyName":"Verify e-mail address","customBinding":false},"__field_13873":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomFormScriptBlock","friendlyName":"Script for Configuration Message","customBinding":false},"__field_13872":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomPhoneTextBoxElementBlock","friendlyName":"Daytime phone number","customBinding":false},"__field_13877":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextBoxElementBlock","friendlyName":"House number","customBinding":false},"__field_13879":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextBoxElementBlock","friendlyName":"Street direction","customBinding":false},"__field_13881":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextBoxElementBlock","friendlyName":"Street name","customBinding":false},"__field_13883":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextBoxElementBlock","friendlyName":"Apartment or lot number","customBinding":false},"__field_13874":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomAddressOptionalTextBoxBlock","friendlyName":"CityStateZip","customBinding":false},"__field_13861":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.ChoiceRequiredElementBlock","friendlyName":"Contact location","customBinding":false},"__field_13884":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextBoxElementBlock","friendlyName":"Other explaination","customBinding":false},"__field_13871":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.ChoiceRequiredElementBlock","friendlyName":"Access with bucket truck","customBinding":false},"__field_13863":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.ChoiceRequiredElementBlock","friendlyName":"Describe pole and wire setting","customBinding":false},"__field_13864":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.ChoiceRequiredElementBlock","friendlyName":"Any obstructions or hazards","customBinding":false},"__field_13865":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"If-Gate code required","customBinding":false},"__field_13866":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"if-Key required","customBinding":false},"__field_13867":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"if-Other","customBinding":false},"__field_13868":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.ChoiceRequiredElementBlock","friendlyName":"power affected by tree","customBinding":false},"__field_13854":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Comments","customBinding":false},"__field_13821":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Text field(2)","customBinding":false},"__field_13798":{"type":"EPiServer.Forms.Implementation.Elements.SubmitButtonElementBlock","friendlyName":"Form 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) })();