/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[64000e73-1f3d-4532-9737-7269084e5fbb]. 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["64000e73-1f3d-4532-9737-7269084e5fbb"] = { Id: "64000e73-1f3d-4532-9737-7269084e5fbb", Name: "request info", // 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 dependency conditions DependencyInactiveElements: [], // Validation info, for executing validating on client side ValidationInfo : [{"targetElementName":"__field_4354","targetElementId":"fd198e49-d2e5-4969-84e6-4a8682e1a642","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_5989","targetElementId":"4ce4255e-e8ae-40c6-98f3-4134d5ad42b0","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_36418","targetElementId":"48c9549f-6503-490f-9980-2147643c3bec","validators":[{"type":"EPiServer.Forms.Samples.Implementation.Validation.RecaptchaValidator","description":null,"model":{"message":"Invalid captcha value.","validationCssClass":null,"additionalAttributes":null}}]}], // Steps information for driving multiple-step Forms. StepsInfo : { Steps: [{"index":0,"attachedUrl":"","dependField":null,"dependCondition":null,"attachedContentLink":"","dependValue":"","elementName":"__field_","guid":"00000000-0000-0000-0000-000000000000"}] }, FieldsExcludedInSubmissionSummary: [], ElementsInfo: {"__field_4354":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Name*","customBinding":false},"__field_5989":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Email*","customBinding":false},"__field_5990":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Phone Number","customBinding":false},"__field_4363":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Program(s) of Interest","customBinding":false},"__field_12907":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"I’m interested in attending","customBinding":false},"__field_4364":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"I would like information about","customBinding":false},"__field_4369":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Questions","customBinding":false},"__field_26926":{"type":"EPiServer.Forms.Implementation.Elements.SubmitButtonElementBlock","friendlyName":"Submit button","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) })();