/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[6a783900-c21b-4a96-aeb6-4c0352e6cd1e]. 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["6a783900-c21b-4a96-aeb6-4c0352e6cd1e"] = { Id: "6a783900-c21b-4a96-aeb6-4c0352e6cd1e", Name: "Member complaint 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_136740","targetElementId":"8f960348-3482-40a1-adc9-bdd4ff96d2b4","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_136739","targetElementId":"147972e1-daf8-452a-a985-55f6190dbc9d","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_136741","targetElementId":"409e2469-7567-4145-af67-7e90a2c1d31a","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_136742","targetElementId":"191f5834-bb3e-42a1-8285-149d9eccf784","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":"Please enter a valid email address.","validationCssClass":null,"additionalAttributes":null}}]},{"targetElementName":"__field_136743","targetElementId":"6b3f240e-18fa-4035-bc6b-d6329333f0e7","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_136745","targetElementId":"2ea22d18-17c3-4353-9fd8-5d97845c1aed","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_136746","targetElementId":"f01d0e1b-4a39-4502-91ef-eb74df018f7c","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_136748","targetElementId":"bd704d81-f3f4-4e2a-82e6-94637214a79f","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_136749","targetElementId":"8028a2df-fc74-469d-81ca-41e695dcd551","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_136750","targetElementId":"2376e479-f6eb-4b71-bc6e-798f5033cd9d","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_136752","targetElementId":"0e6a8272-ab63-4685-81ea-04e4f89f4200","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]}], // Steps information for driving multiple-step Forms. StepsInfo : { Steps: [{"index":0,"attachedUrl":"","dependField":null,"dependCondition":null,"isActive":true,"attachedContentLink":"","dependValue":null,"elementName":"__field_136738","guid":"d7806c50-fa40-4fd6-bd9e-8a8d07e45a40"},{"index":1,"attachedUrl":"","dependField":null,"dependCondition":null,"isActive":true,"attachedContentLink":"","dependValue":null,"elementName":"__field_136744","guid":"2e949eaf-714a-4bc5-8c62-5eb3733dbf0e"},{"index":2,"attachedUrl":"","dependField":null,"dependCondition":null,"isActive":true,"attachedContentLink":"","dependValue":null,"elementName":"__field_136747","guid":"7d8b2a3a-d4a6-4489-8a7f-b3dd592fc60d"}] }, FieldsExcludedInSubmissionSummary: [], ElementsInfo: {"__field_136740":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"Allegation submitted by: title","customBinding":false},"__field_136739":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Allegation submitted by: first name(s)","customBinding":false},"__field_136741":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Allegation submitted by: last name","customBinding":false},"__field_136742":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Allegation submitted by: email address","customBinding":false},"__field_136743":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Allegation submitted by: phone number","customBinding":false},"__field_136745":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Allegation made against: first name(s)","customBinding":false},"__field_136746":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Allegation made against: last name","customBinding":false},"__field_136748":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Statement of the allegation","customBinding":false},"__field_136758":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Download code of conduct","customBinding":false},"__field_136749":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Reference(s) to RSC Code of Conduct","customBinding":false},"__field_136759":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Charter and By-laws","customBinding":false},"__field_136750":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"Reference(s) to RSC By-laws","customBinding":false},"__field_136751":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Terms","customBinding":false},"__field_136752":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Agree to terms","customBinding":false},"__field_136753":{"type":"EPiServer.Forms.Implementation.Elements.SubmitButtonElementBlock","friendlyName":"submit-button-element-block-1","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 = false; // 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) })();