/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[2b5c256b-4344-4445-9fc7-236cacddbb41]. 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["2b5c256b-4344-4445-9fc7-236cacddbb41"] = { Id: "2b5c256b-4344-4445-9fc7-236cacddbb41", Name: "Electricity Theft 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_13563","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_13595","operator":"Contains","fieldValue":"Other"}]},{"fieldName":"__field_13602","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_13596","operator":"Contains","fieldValue":"Yes"}]},{"fieldName":"__field_13600","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_13596","operator":"Contains","fieldValue":"Yes"}]},{"fieldName":"__field_13597","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_13596","operator":"Contains","fieldValue":"Yes"}]},{"fieldName":"__field_13592","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_13596","operator":"Contains","fieldValue":"Yes"}]}], // keep all fieldName which are not satisfied the field dependency conditions DependencyInactiveElements: [], // Validation info, for executing validating on client side ValidationInfo : [{"targetElementName":"__field_13593","targetElementId":"f7cc95c0-c0f6-4071-9571-da8942f6046e","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter the Street Address.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13594","targetElementId":"5f415464-1ad6-49d1-b6da-f7bba0fdd71f","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please enter the City.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13595","targetElementId":"785972b4-5bc1-4735-9b08-d8ca184480f4","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please indicate how electricity is being stolen.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13563","targetElementId":"019287bd-ffb7-4935-957e-38275282aa52","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please provide additional information related to how electricity is being stolen.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13596","targetElementId":"88bf73bb-f43b-42da-8d90-666f93caf455","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please indicate if we may contact you.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13600","targetElementId":"1fe10dee-c8a6-41fe-a762-84319efed0d3","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 area code.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_13597","targetElementId":"07a0d7bb-b694-4739-a389-c63388d838ac","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_13592","targetElementId":"9c274609-6c47-4da4-80c7-d3c2041263ed","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_18232","targetElementId":"f72899b4-d9a3-4425-ab8c-12103c72212d","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_13554":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Top rich text","customBinding":false},"__field_13593":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"Street address","customBinding":false},"__field_13594":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"City","customBinding":false},"__field_13552":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Text Field","customBinding":false},"__field_13595":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.ChoiceRequiredElementBlock","friendlyName":"Stealing electricity","customBinding":false},"__field_13563":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Stealing electricity-If Other","customBinding":false},"__field_13564":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Resident","customBinding":false},"__field_13565":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Stay duration","customBinding":false},"__field_13566":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Home hours","customBinding":false},"__field_13599":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomDynamicPrefixTextBoxElementBlock","friendlyName":"Vehicle model and color","customBinding":false},"__field_13603":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomFormScriptBlock","friendlyName":"Vehicle Model Script","customBinding":false},"__field_13601":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Additional information","customBinding":false},"__field_13572":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Text","customBinding":false},"__field_13596":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.ChoiceRequiredElementBlock","friendlyName":"Contact information","customBinding":false},"__field_13602":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextBoxElementBlock","friendlyName":"Name","customBinding":false},"__field_13600":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomPhoneTextBoxElementBlock","friendlyName":"Phone","customBinding":false},"__field_13597":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.CustomTextboxRequiredBlock","friendlyName":"E-mail address","customBinding":false},"__field_13592":{"type":"TecoOptimizely.Models.Blocks.CustomFormElementModels.TextboxMatchBlock","friendlyName":"Verify e-mail address","customBinding":false},"__field_13576":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Text field","customBinding":false},"__field_13553":{"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) })();