/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[968daf8f-3e80-44b6-b7d1-c2f21c54c842]. 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["968daf8f-3e80-44b6-b7d1-c2f21c54c842"] = { Id: "968daf8f-3e80-44b6-b7d1-c2f21c54c842", Name: "Students competition entry 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 : "Thank you for submitting an application for the student membership week prize draw. Winners will be notified by a tagged post on Instagram and/or emailed by 8 November 2024 to the email address linked to the membership account. Kind regards The Membership Team", ShowNavigationBar : true, ShowSummarizedData : true, // 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_159034","targetElementId":"8822c0fa-c9fa-4e5d-946e-c09a967537eb","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_158587","targetElementId":"d45f2599-2fa6-4aea-8667-03ae0002f366","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_159035","targetElementId":"c704576e-43e3-4c8f-ba67-6ec3dbdbd318","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_158593","targetElementId":"21a2c302-b6b6-4957-8796-00dbdfcefcd8","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":""}}}]},{"targetElementName":"__field_158595","targetElementId":"081599e3-f65e-4050-81e8-9c86bf7ea270","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":"","elementName":"__field_","guid":"00000000-0000-0000-0000-000000000000"}] }, FieldsExcludedInSubmissionSummary: [], ElementsInfo: {"__field_158600":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"* denotes mandatory fields","customBinding":false},"__field_159034":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Name","customBinding":false},"__field_158587":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Membership no","customBinding":false},"__field_158588":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Instagram details","customBinding":false},"__field_159035":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"T-shirt size","customBinding":false},"__field_158591":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Ts and Cs for competition","customBinding":false},"__field_158593":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Ts and Cs for competition tick box","customBinding":false},"__field_158596":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Data protection terms","customBinding":false},"__field_158595":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Ts and Cs for GDPR","customBinding":false},"__field_158589":{"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) })();