/ *此视图作为渲染模板,以呈现FormContainerblock的客户端的Initscript(和服务器端表单描述符)以表单进行表格[30358473-CA17-4AA8-A8FF-D94B811EB593]。技术技术:Episerverforms的所有服务(路径,动态值)将在此部分中传输到客户端。* /(functionizeOnRenderingFormDescriptor(){//每个工作表项都是存储在epi.episerver.forms中的存储,由其formguid var WorkforminInfo = epi.episerver.forms [“30358473-ca17-4aa8-a8ff-d94b8111eb593”] = {id:“30358473-CA17-4AA8-A8FF-D94B811EB593”,名称:“产品联系b0b体育下栽方式”,//是否可以提交此表格,其与访问者的数据(Cookie,Identity)和表单设置(AllanMonymous,AllowXxx)SubmittableStatus(allan):{“提交”:true,“message”:“”},confirmmessage:“”,显示avegarbar:true,showummarizeddata:false,//将此表单的依赖关系配置序列化为clientside depentenciesinfo:[],//保留所有现场名称不满足依赖性条件依赖性incenceInctioneLements:[],//验证信息,用于在客户端validation上执行验证validationInfo:[{“targetElementName”:“__ Field_8570”,“TargetElementId”:“B47E2C6C-1A4C-4DA6-BD72-7204B4E96F3F”,“验证器“:[{”类型“:”episerver.forms.implingation.validation。RequentValidator“,”描述“:null,”model“:{”消息“:”此字段是必需的。“,”ValidationCssClass“:”ValidationRequired“,”revalidAttributes“:{”必需“:”“}}}”},{“targetElementName”:“__ Field_8571”,“TargetElementID”:“CCA739EF-3822-4FD9-9EB7-D0D73F198456”,“验证器”:[【类型“:”episerver.forms.implingation.validation.emailvalidator“,”描述“:null,”模型“:{”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 - 。] + $)“,”消息“:”输入有效的电子邮件地址。“,”validationCssclass“:null,”readyAdttributes“:null}}},{“targetElementName”:“__ field_2010396”,“targeteLementId”:“fd878ed5-7c9e-4ae4-b8ec-8ec4cae378b8”,“validators”:[【类型“:”episerver.forms.implingation.validation.requiredvalidator“,”描述“:null,“model”:{“消息”:“此字段是必需的。”,“ValidationCSSClass”:“validationRequired”,“revalidAttributes”:{“必需”:“”“”}}}“},{targetElementName”:“__field_8573”,“targeteLementid”:“0A73DB2D-44C4-4770-8D8D-D868F178EA84“,”验证器“:[【键入”:“episerver.forms.implingation.validation.requiredvalidator”,“描述”:null,“model”:{“消息”:“这 field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_2008634","targetElementId":"80fa248b-1ab6-43bd-8e4d-af9d1ae0ae87","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,"attachedContentLink":"","dependValue":"","elementName":"__field_","guid":"00000000-0000-0000-0000-000000000000"}] }, FieldsExcludedInSubmissionSummary: [], ElementsInfo: {"__field_8570":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Name","customBinding":false},"__field_8571":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Email","customBinding":false},"__field_8576":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Phone","customBinding":false},"__field_2010396":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"Country","customBinding":false},"__field_8573":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Visitor message","customBinding":false},"__field_8574":{"type":"EPiServer.Forms.Implementation.Elements.SubmitButtonElementBlock","friendlyName":"Submit","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) })();