/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[dfc9de51-c480-4ff0-a8df-cda03128e724]. 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["dfc9de51-c480-4ff0-a8df-cda03128e724"] = { Id: "dfc9de51-c480-4ff0-a8df-cda03128e724", Name: "Venue hire contact", // 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_133226","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_133225","operator":"NotEquals","fieldValue":""}]}], // keep all fieldName which are not satisfied the field dependency conditions DependencyInactiveElements: [], // Validation info, for executing validating on client side ValidationInfo : [{"targetElementName":"__field_133219","targetElementId":"8c1f716a-186a-4268-bb85-e4e96212a897","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_133221","targetElementId":"3cd9ded7-104b-4b90-bac0-4af74f86ec79","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_133222","targetElementId":"6f10e021-e853-4a61-9ee3-7c0339310ae7","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_133220","targetElementId":"3622392d-09ba-47c5-a3e8-7cb52593caf7","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_133224","targetElementId":"c0fbcbf2-5a53-4d6e-85fe-e1760320c7bb","validators":[{"type":"EPiServer.Forms.Implementation.Validation.NumericValidator","description":null,"model":{"message":"Enter a valid number.","validationCssClass":null,"additionalAttributes":null}},{"type":"EPiServer.Forms.Implementation.Validation.PositiveIntegerValidator","description":null,"model":{"jsPattern":"^\\d+$","dotNetPattern":"^\\d+$","message":"Please enter a number more than one","validationCssClass":null,"additionalAttributes":null}}]},{"targetElementName":"__field_133225","targetElementId":"1519407d-cdb5-4c5c-89ac-6d1c525f1b91","validators":[{"type":"EPiServer.Forms.Implementation.Validation.DateDDMMYYYYValidator","description":null,"model":{"jsPattern":"^(((0[1-9]|[12]\\d|3[01])\\/(0[13578]|1[02])\\/((19|[2-9]\\d)\\d{2}))|((0[1-9]|[12]\\d|30)\\/(0[13456789]|1[012])\\/((19|[2-9]\\d)\\d{2}))|((0[1-9]|1\\d|2[0-8])\\/02\\/((19|[2-9]\\d)\\d{2}))|(29\\/02\\/(19|[2-9]\\d)([02468][048]|[13579][26])))$","dotNetPattern":"^(((0[1-9]|[12]\\d|3[01])\\/(0[13578]|1[02])\\/((19|[2-9]\\d)\\d{2}))|((0[1-9]|[12]\\d|30)\\/(0[13456789]|1[012])\\/((19|[2-9]\\d)\\d{2}))|((0[1-9]|1\\d|2[0-8])\\/02\\/((19|[2-9]\\d)\\d{2}))|(29\\/02\\/(19|[2-9]\\d)([02468][048]|[13579][26])))$","message":"Enter a date in the DD/MM/YYYY format","validationCssClass":null,"additionalAttributes":null}}]},{"targetElementName":"__field_133226","targetElementId":"32b4331f-b49a-4401-93a7-71eaa373428d","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_133219":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"First name(s)","customBinding":false},"__field_133221":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Surname","customBinding":false},"__field_133222":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Email address","customBinding":false},"__field_133223":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Phone number","customBinding":false},"__field_133220":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"Event type","customBinding":false},"__field_133224":{"type":"EPiServer.Forms.Implementation.Elements.NumberElementBlock","friendlyName":"Estimated number of guests","customBinding":false},"__field_133225":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Planned date of event (if known)","customBinding":false},"__field_133226":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"Are you flexible on this date?","customBinding":false},"__field_133227":{"type":"EPiServer.Forms.Implementation.Elements.SubmitButtonElementBlock","friendlyName":"submit-button-element-block-1","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) })();