/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[42804da2-9283-4bb4-94b7-ea95f6b2602c]. 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["42804da2-9283-4bb4-94b7-ea95f6b2602c"] = { Id: "42804da2-9283-4bb4-94b7-ea95f6b2602c", Name: "Purchase request 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_135670","targetElementId":"015005b1-695f-434a-a0b8-3379297300c4","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_135672","targetElementId":"1ea6d2d5-0957-470c-b685-56d370ca3368","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_135673","targetElementId":"aaed915a-9c1b-41bb-b51a-361c6106ec65","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_135702","targetElementId":"f0e8636a-4860-46df-b8da-04446905fc9a","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_135674","targetElementId":"32002f11-8fa3-4df5-bcd9-c6d5357f95b5","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_135676","targetElementId":"f889d1fe-1251-485e-b8b5-f5cad9e0c04a","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_158776","targetElementId":"7ff0269d-53cc-4c6c-9996-f0e5b513ebc9","validators":[{"type":"EPiServer.Forms.Implementation.Validation.CaptchaValidator","description":null,"model":{"message":"Enter the characters you see in the picture.","validationCssClass":null,"additionalAttributes":null}}]}], // 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_135670":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"Student/staff","customBinding":false},"__field_135672":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Name","customBinding":false},"__field_135673":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Email","customBinding":false},"__field_135702":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Title","customBinding":false},"__field_135674":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Author","customBinding":false},"__field_135703":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Publication Year","customBinding":false},"__field_135719":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"ISBN","customBinding":false},"__field_135676":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Reserve","customBinding":false},"__field_135677":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Interlibrary loan","customBinding":false},"__field_135704":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Message","customBinding":false},"__field_141106":{"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) })();