/*这个视图作为一个渲染模板,在FormContainerBlock的客户端为Form渲染InitScript(和服务器端表单描述符)[fbdaed9a-393b-409a-b893-048468943d2d]。技术提示:EPiServerForms的所有服务器端(路径、动态值)将在本节中转移到客户端。*/ (function initializeOnRenderingFormDescriptor(){//每个workingFormInfo存储在epi.EPiServer中。通过它的FormGuid var workingFormInfo = epi.EPiServer查找。形式(“fbdaed9a - 393 b - 409 a - b893 - 048468943 - d2d”)= {Id:“fbdaed9a - 393 b - 409 a - b893 - 048468943 - d2d”,名字:“NewsletterSignup”/ /提交此表格是否可以与访问者的数据(饼干、身份)和形式的设置(AllowAnonymous, AllowXXX) SubmittableStatus:{“submittable”:真的,“消息”:"},ConfirmMessage:“”,ShowNavigationBar:真的,ShowSummarizedData:假的,/ /序列化的依赖配置此表格clientside DependenciesInfo:[], //保留所有不满足字段依赖条件的fieldName DependencyInactiveElements:[], //验证信息,用于在客户端执行验证ValidationInfo:[{" targetElementName":"__field_22572","targetElementId":"9759240f-e3ca-4c45-b187-6eca0aa7bc5e","validators":[{"type":" episerver . form . implementation .Validation. ValidationInfo:"9759240f-e3ca-4c45-b187-6eca0aa7bc5e . "RequiredValidator","description":null,"model":{"message":"First Name is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"" ValidationRequired"," ria-required":"true"}}}]},{"targetElementName":"__field_22573","targetElementId":"b49709ca-7528-4623-a02a-cf9e2729cb2f","validators":[{"type":" episerver . form . implementation . validation . info ."RequiredValidator","description":null,"model":{"message":" final Name is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"" aria-required":"true"}}}]},{"targetElementName":"__field_132324","targetElementId":"63eebea7-ba3f-412f-9499-df08663812fa","validators":[{"type":" episerver . form . implementation . validation ."RequiredValidator”、“描述”:零,“模式”:{“消息”:“电子邮件是必需的。”,“validationCssClass”:“ValidationRequired”、“additionalAttributes”:{"需要":"," aria-required ": "真正的"}}},{“类型”:“EPiServer.Forms.Implementation.Validation.EmailValidator”、“描述”:空,“模式”:{“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 additionalAttributes“:null,:零}}},{“targetElementName”:“__field_21747”、“targetElementId”:“2691 c75e c99 d517 - 4 - 9685 c7113dbd8f2b”、“验证”:[{“类型”:“EPiServer.Forms.Implementation.Validation。RequiredValidator","description":null,"model":{"message":"Privacy Policy is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""," ria-required":"true"}}}]},{"targetElementName":"__field_348586","targetElementId":"05748d8b-2f45-46d3-9d6a-dbf7a0b8d3e4","validators":[{"type":" bbscatalast . web . form . validation ."NeogenRecaptchaV3Validator”、“描述”:空,“模式”:{“消息”:“Recaptcha错误。,"validationCssClass":null,"additionalAttributes":null}}]}], //驱动多步表单的步骤信息。步骤信息:{步骤:[{"index":0,"attachedUrl":"","dependField":null,"dependCondition":null,"isActive":true,"attachedContentLink":"","dependValue":"","elementName":"__field_","guid":"0000000 -0000-0000-0000-000000000000"}]}, FieldsExcludedInSubmissionSummary: [], ElementsInfo: {"__field_22572":{"type":" episerver . forms . implements . elements . "TextboxElementBlock”、“friendlyName”:“名字”、“customBinding __field_22573“:假}:{“类型”:“EPiServer.Forms.Implementation.Elements。TextboxElementBlock”、“friendlyName”:“姓”、“customBinding __field_132324“:假}:{“类型”:“EPiServer.Forms.Implementation.Elements。TextboxElementBlock","friendlyName":"E-mail Address","customBinding":false},"__field_32968":{"type":"EPiServer.Forms.Implementation.Elements.SubmitButtonElementBlock","friendlyName":"Subscribe","customBinding":false},"__field_21747":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Privacy Policy","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) })();