/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[eb749e8a-65e9-45cd-99ba-5c292eeb7bc8]. 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["eb749e8a-65e9-45cd-99ba-5c292eeb7bc8"] = { Id: "eb749e8a-65e9-45cd-99ba-5c292eeb7bc8", Name: "Venue hire contact v2", // 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_179050","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_179049","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_179043","targetElementId":"8c596608-a020-45d3-9e74-a660e51b7ca8","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_179045","targetElementId":"0c516d9e-bd6f-4232-b3c7-3c559bf5f4d1","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_179046","targetElementId":"0051bcd9-8186-4390-8f6c-2d85898f7b0f","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_179044","targetElementId":"4b8e1cfe-df89-45dd-86dc-e6a62708cb33","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_179048","targetElementId":"20d03930-93eb-4522-a217-d91045234bc6","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_179049","targetElementId":"302744d4-47c0-4ff9-8180-ce33300856ec","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_179050","targetElementId":"92fc5a03-cc3b-4d9b-bc96-3d9e8341d57b","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_179058","targetElementId":"c4c69057-0d89-4a2e-85d4-287a27d0ac06","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_179060","targetElementId":"04683711-1cc6-4cdb-b90d-28bf2b104bb9","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_179043":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"First name(s)","customBinding":false},"__field_179045":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Surname","customBinding":false},"__field_179046":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Email address","customBinding":false},"__field_179047":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Phone number","customBinding":false},"__field_179053":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Company name (if applicable)","customBinding":false},"__field_179044":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"Event type","customBinding":false},"__field_179054":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"If 'other', please specify","customBinding":false},"__field_179055":{"type":"EPiServer.Forms.Implementation.Elements.ImageChoiceElementBlock","friendlyName":"Preferred room (if known)","customBinding":false},"__field_179048":{"type":"EPiServer.Forms.Implementation.Elements.NumberElementBlock","friendlyName":"Estimated number of guests","customBinding":false},"__field_179049":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Planned date of event (if known)","customBinding":false},"__field_179050":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"Are you flexible on this date?","customBinding":false},"__field_179056":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Preferred timings","customBinding":false},"__field_179057":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Additional details","customBinding":false},"__field_179058":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Would you like to receive the latest news, exclusive invites and offers from our venue?","customBinding":false},"__field_179059":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Terms info","customBinding":false},"__field_179060":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Agree to terms","customBinding":false},"__field_179051":{"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) })();