/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[6cecab26-8fb8-4006-8eb0-ba08c1be4a5a]. 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["6cecab26-8fb8-4006-8eb0-ba08c1be4a5a"] = { Id: "6cecab26-8fb8-4006-8eb0-ba08c1be4a5a", Name: "Web Support", // 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 your submission, you're in good hands now. Our team of experts have been made aware of your issue and we will reach out as soon as we have a solution.", ShowNavigationBar : true, ShowSummarizedData : false, // serialize the dependency configuration of this form to clientside DependenciesInfo : [{"fieldName":"__field_15346","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_15341","operator":"Contains","fieldValue":"Password reset"}]},{"fieldName":"__field_15363","action":{"displayName":"Shown","name":"EPiServer.Forms.Core.Internal.Dependency.ShowAction","order":1,"clientsideAction":"show"},"conditionCombination":"All","conditions":[{"fieldName":"__field_15341","operator":"Contains","fieldValue":"Member-only content"}]},{"fieldName":"__field_15364","action":null,"conditionCombination":"All","conditions":[{"fieldName":"__field_15363","operator":"Equals","fieldValue":"Yes"}]}], // keep all fieldName which are not satisfied the field dependency conditions DependencyInactiveElements: [], // Validation info, for executing validating on client side ValidationInfo : [{"targetElementName":"__field_15338","targetElementId":"bcb6b658-4757-41b7-84c5-937a424d879d","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_15339","targetElementId":"1024d98b-38fe-4bf4-958e-39515bdf016e","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_15340","targetElementId":"89770313-263a-47df-8223-93e2e6c89317","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_15359","targetElementId":"32b2a774-666d-43f0-8cbc-ef773647cf6d","validators":[{"type":"EPiServer.Forms.Implementation.Validation.AllowedExtensionsValidator","description":null,"model":{"accept":".jpg,.jpeg,.png,.bmp","message":"The upload file format is not allowed or not supported. File format should be: .jpg,.jpeg,.png,.bmp.","validationCssClass":null,"additionalAttributes":null}},{"type":"EPiServer.Forms.Implementation.Validation.MaxFileSizeValidator","description":null,"model":{"sizeInBytes":1048576,"message":"The upload file size should be less than 1 MB.","validationCssClass":null,"additionalAttributes":null}}]},{"targetElementName":"__field_15360","targetElementId":"19cfd638-92d8-488b-9e24-1e0e6be4adae","validators":[{"type":"EPiServer.Forms.Samples.Implementation.Validation.RecaptchaValidator","description":null,"model":{"message":"Invalid reCAPTCHA value, please try again.","validationCssClass":null,"additionalAttributes":null}}]}], // 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: ["__field_15359"], ElementsInfo: {"__field_15338":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Name","customBinding":false},"__field_15339":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Email","customBinding":false},"__field_15340":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Phone","customBinding":false},"__field_15341":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"Your issue","customBinding":false},"__field_15346":{"type":"EPiServer.Forms.Implementation.Elements.ParagraphTextElementBlock","friendlyName":"Triage- Password Reset","customBinding":false},"__field_15363":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Triage- Member content - Member status","customBinding":false},"__field_15364":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"Triage- Member content - Company name","customBinding":false},"__field_15359":{"type":"EPiServer.Forms.Implementation.Elements.FileUploadElementBlock","friendlyName":"Upload a screenshot","customBinding":false},"__field_15342":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"More details","customBinding":false},"__field_15347":{"type":"EPiServer.Forms.Implementation.Elements.SubmitButtonElementBlock","friendlyName":"Submit button","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) })();