/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[9261032c-b5bd-4f59-afe6-0b61a7e655ce]. 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["9261032c-b5bd-4f59-afe6-0b61a7e655ce"] = { Id: "9261032c-b5bd-4f59-afe6-0b61a7e655ce", Name: "Advertising direct mailing", // 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_38074","targetElementId":"2aaa65ee-d9f9-44e4-87aa-c5faf9560d6e","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_38075","targetElementId":"a1da824c-a054-48be-9fe9-312a918390a6","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_38076","targetElementId":"18ac8ec9-2503-49e7-bba9-06d10f1d8f5d","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}},{"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_38077","targetElementId":"0a029713-3607-446f-9b7e-3e7c4ba01f08","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_38078","targetElementId":"1fc718e3-f71a-4034-be90-77729b5dcf44","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_38079","targetElementId":"902d5415-9560-4b62-9305-d95b1b59733c","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_38106","targetElementId":"4a014c05-3434-4b9a-8ea2-6e99481bff8a","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]}], // 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_38133":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"your details heading","customBinding":false},"__field_38074":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Name","customBinding":false},"__field_38075":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Company","customBinding":false},"__field_38076":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Email","customBinding":false},"__field_38077":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Telephone Number","customBinding":false},"__field_38134":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"initial targeting information heading","customBinding":false},"__field_38078":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Email and Phone Count","customBinding":false},"__field_38079":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Countries to include","customBinding":false},"__field_38080":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Any other information you would like to add","customBinding":false},"__field_38135":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"divisions heading","customBinding":false},"__field_38084":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Divisions","customBinding":false},"__field_38136":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"related interest groups heading","customBinding":false},"__field_38088":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Analytical Division related interest groups","customBinding":false},"__field_38089":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Chemical Biology Interface Division related interest groups","customBinding":false},"__field_38090":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Dalton Division related interest groups","customBinding":false},"__field_38091":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Education Division related interest groups","customBinding":false},"__field_38092":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Environment, Sustainability and Energy Division related interest groups","customBinding":false},"__field_38093":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Materials ΎΕΦέΣ°ΤΊ Division related interest groups","customBinding":false},"__field_38094":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Faraday (Physical) Division related interest groups","customBinding":false},"__field_38095":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Industrial and Technology Division related interest groups","customBinding":false},"__field_38096":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Organic Division related interest groups","customBinding":false},"__field_38097":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Other Interest Groups","customBinding":false},"__field_38137":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"industry type heading","customBinding":false},"__field_38099":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Select industry","customBinding":false},"__field_38138":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"select by job role heading","customBinding":false},"__field_38102":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Select job role","customBinding":false},"__field_38105":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Privacy","customBinding":false},"__field_38106":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Agree to terms","customBinding":false},"__field_38085":{"type":"EPiServer.Forms.Implementation.Elements.SubmitButtonElementBlock","friendlyName":"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) })();