Gå till huvudinnehåll
// This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[178b9502-2b88-4fed-9f46-243aa6eaf5e4]. // 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["178b9502-2b88-4fed-9f46-243aa6eaf5e4"] ={ Id: "178b9502-2b88-4fed-9f46-243aa6eaf5e4" , Name: "Prenumerera på nyhetsbrev" , // 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: "", ResetConfirmMessage : "", ShowNavigationBar : false, ShowSummarizedData : false, // serialize the dependency configuration of this form to clientside DependenciesInfo : JSON.parse("[]"), // keep all fieldName which are not satisfied the field dependency conditions DependencyInactiveElements: [], // Validation info, for executing validating on client side ValidationInfo : JSON.parse("[{\"targetElementName\":\"__field_32520\",\"targetElementId\":\"257b17fe-ba76-4064-b7a4-ff9fe7403414\",\"validators\":[{\"type\":\"EPiServer.Forms.Implementation.Validation.EmailValidator\",\"description\":null,\"model\":{\"jsPattern\":\"^((([a-zA-Z]|\\\\d|[!#\\\\$%\u0026\u0027\\\\*\\\\+\\\\-\\\\/=\\\\?\\\\^_`{\\\\|}~]|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF])+(\\\\.([a-zA-Z]|\\\\d|[!#\\\\$%\u0026\u0027\\\\*\\\\+\\\\-\\\\/=\\\\?\\\\^_`{\\\\|}~]|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF])+)*)|((\\\\x22)((((\\\\x20|\\\\x09)*(\\\\x0d\\\\x0a))?(\\\\x20|\\\\x09)+)?(([\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\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~|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF])*([a-zA-Z]|[\\\\u00A0-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF])))\\\\.?$\",\"message\":\"Ange en giltig e-postadress.\",\"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: [], ElementsInfo: JSON.parse("{\"__field_22913\":{\"type\":\"Castellum.Features.Honeypot.HoneypotElementBlock\",\"friendlyName\":\"Honeypot\",\"customBinding\":false},\"__field_32514\":{\"type\":\"Castellum.Models.Elements.NewsletterSubscribeElementBlock\",\"friendlyName\":\"Välj nyhetsbrev\",\"customBinding\":false},\"__field_32521\":{\"type\":\"EPiServer.Forms.Implementation.Elements.TextboxElementBlock\",\"friendlyName\":\"Förnamn\",\"customBinding\":false},\"__field_32522\":{\"type\":\"EPiServer.Forms.Implementation.Elements.TextboxElementBlock\",\"friendlyName\":\"Efternamn\",\"customBinding\":false},\"__field_32520\":{\"type\":\"EPiServer.Forms.Implementation.Elements.TextboxElementBlock\",\"friendlyName\":\"E-post\",\"customBinding\":false},\"__field_32515\":{\"type\":\"Castellum.Models.Elements.GdprSubmitButtonElementBlock\",\"friendlyName\":\"Skicka-knapp\",\"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) })();

Prenumerera på Castellums nyhetsbrev

Undrar du vad som ska bli av det där bygget mitt i stan, eller vill du hålla koll på senaste trenderna inom framtidens arbetsliv och hållbara arbetsplatser? Då är Castellums nyhetsbrev något för dig.

Välj vilka nyhetsbrev du vill prenumera på i listan. Ingen spam, inga förpliktelser. Bara sjyst info, smarta tips och massor av inspiration.

Välj nyhetsbrev

All behandling av personuppgifter sker i enlighet med dataskyddsförordningen och annan dataskyddslagstiftning. Läs mer om GDPR

Relaterat