1 2 3/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[6a947f64-d0f9-429a-bb10-1e8c1d0e76df]. 4TECHNOTE: all serverside (paths, dynamic values) of EPiServerForms will be transfered to client side here in this section. */ 5(function initializeOnRenderingFormDescriptor() { 6 // each workingFormInfo is store inside epi.EPiServer.Forms, lookup by its FormGuid 7 var workingFormInfo = epi.EPiServer.Forms["6a947f64-d0f9-429a-bb10-1e8c1d0e76df"] = { 8 Id: "6a947f64-d0f9-429a-bb10-1e8c1d0e76df", 9 Name: "Contact us", 10 // whether this Form can be submitted which relates to the visitor's data (cookie, identity) and Form's settings (AllowAnonymous, AllowXXX) 11 12 SubmittableStatus : {"submittable":true,"message":""}, 13 ConfirmMessage : "", 14 ShowNavigationBar : true, 15 ShowSummarizedData : false, 16 17 // serialize the dependency configuration of this form to clientside 18 DependenciesInfo : [], 19 // keep all fieldName which are not satisfied the field dependency conditions 20 DependencyInactiveElements: [], 21 22 // Validation info, for executing validating on client side 23 ValidationInfo : [{"targetElementName":"__field_201050","targetElementId":"8826eaeb-2773-47d4-a5ab-6c24e81ead30","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_201054","targetElementId":"5b404bef-8ced-4d75-afec-ddfe68c95253","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}},{"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_202598","targetElementId":"89f2898e-8122-4438-9a3b-9a2d805d2828","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"Please select a category","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_201052","targetElementId":"8d55df82-aa65-4d40-9ac3-64c8f2bd5531","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]}], 24 // Steps information for driving multiple-step Forms. 25 StepsInfo : { 26 Steps: [{"index":0,"attachedUrl":"","dependField":null,"dependCondition":null,"isActive":true,"attachedContentLink":"","dependValue":"","elementName":"__field_","guid":"00000000-0000-0000-0000-000000000000"}] 27 }, 28 FieldsExcludedInSubmissionSummary: [], 29 ElementsInfo: {"__field_201050":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Name","customBinding":false},"__field_201051":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Company","customBinding":false},"__field_201054":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Email","customBinding":false},"__field_202598":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"Category","customBinding":false},"__field_201052":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Question or comment","customBinding":false},"__field_201053":{"type":"EPiServer.Forms.Implementation.Elements.SubmitButtonElementBlock","friendlyName":"Submit button","customBinding":false}}, 30 DataSubmitController: "/EPiServer.Forms/DataSubmit" 31 32 }; 33 34 /// TECHNOTE: Calculation at FormInfo level, and these values will be static input for later processing. 35 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 36 workingFormInfo.StepsInfo.FormHasNothing = false; // this FLAG will be true if FormContainer has no element at all 37 workingFormInfo.StepsInfo.AllStepsAreNotLinked = true; // this FLAG will be true, if all steps all have contentLink=="" (emptyString) 38})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.