/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[4214343d-2009-4c11-b75b-4648e39c707f]. 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["4214343d-2009-4c11-b75b-4648e39c707f"] = { Id: "4214343d-2009-4c11-b75b-4648e39c707f", Name: "Usage Statistics Registration Form", // 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_41464","targetElementId":"72654f6a-1f69-41a4-8dd4-1c94ad6dc9fa","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_41465","targetElementId":"b490ffa3-bb7d-4db5-b630-4d4d1c0525b6","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_41487","targetElementId":"3cc30c10-0bf6-4576-b455-0b19de28adc3","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_41489","targetElementId":"e9c1d7cc-2bcc-410b-bd77-31c1aedc18ba","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_41491","targetElementId":"c9b324ca-cc64-4a2f-9d0c-768dcdd2cd99","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_41492","targetElementId":"d8de00c6-00c0-4cde-81c4-d2c25414cda8","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_41484","targetElementId":"ddb29069-7130-4b91-8d7c-ee50f25d4b9f","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_41466","targetElementId":"37515e8c-f027-4e63-98c6-84f8bffb8152","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_41500","targetElementId":"fb5698fa-9ace-49f6-982f-06e897b8e3a7","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_41587":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"required fields notice","customBinding":false},"__field_41476":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"RSC customer number (if known)","customBinding":false},"__field_41464":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Name","customBinding":false},"__field_41465":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Organisation","customBinding":false},"__field_41487":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Address line 1","customBinding":false},"__field_41488":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Address line 2","customBinding":false},"__field_41489":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Town/city","customBinding":false},"__field_41491":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Postal/ZIP code","customBinding":false},"__field_41492":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Country","customBinding":false},"__field_41484":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Job title","customBinding":false},"__field_41466":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Your email","customBinding":false},"__field_41499":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Terms","customBinding":false},"__field_41500":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Agree to terms","customBinding":false},"__field_41483":{"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) })();