Tilmeldingsformular med venteliste
I det følgende gennemgåes, hvordan man opretter en formular, der fungerer som tilmelding til f.eks. et arrangement. I eksemplet ønsker vi at sætte en øvre grænse på antallet af tilmeldte og at lade besøgende skrive sig på en venteliste, når grænsen for regulær tilmelding er nået. Vi beskriver samtidig, hvordan man nemt får en liste ud over de tilmeldte og personer på ventelisten.
Vi bruger Forms for editors / Formularer for redaktører modulet, da det giver de bedste muligheder for at tilpasse formularen.
I det konkrete eksempel ønsker vi, at besøgende skal oplyse navn, telefon og e-mail, når de tilmelder sig.
Opret formularer
Opret en tilmeldingsformular
Første skridt er at oprette tilmeldingsformularen og formularen til ventelisten.
- Gå til Moduler > Formularer for redaktører
- Vælg "Ny formular" øverst til venstre. Angiv navnet "Tilmeldingsformular".
- Opret de felter, du ønsker i formularen:
- Vælg "Tekst" i menuen øverst og angiv "Navn" som tekst. Vælg, at feltet skal være obligatorisk.
- Opret felterne "Telefon" og "E-mail" på samme måde
- Vælg "Send" i menuen øverst for at indsætte en knap til indsendelse af formularen. Angiv "Send" som tekst.
- Gå til "Indstillinger" øverst til venstre
- Under "E-mail felt" vælges dit felt med navnet E-mail
- Tryk "Gem" og vælg "Luk" øverst til venstre
Din formular er nu oprettet og klar til brug. I dette eksempel ønsker vi at bruge en identisk formular ved tilmelding til ventelisten.
Opret formular til venteliste
- Højreklik på din nyoprettede formular
- Vælg "Kopier"
- Højreklik på kopien "Tilmeldingsformular (Kopi)"
- Vælg "Omdøb" og angiv navnet "Venteliste"
Indsættelse og opsætning
Indsættelse af tilmeldingsformular
- Vælg en eksisterende side, hvor du ønsker tilmeldingsformularen vist eller opret en ny. Denne side benævnes som "Tilmelding" i denne vejledning.
- Opret en underside til siden med formularen (højreklik på siden i navigationen, vælg "Ny underside"). Angiv "Venteliste" som navn.
- På siden "Tilmelding", opret et nyt afsnit.
- Vælg "Modul" øverst og vælg "Forms for editors"
- Under "Formular" finder du en dropdown med alle de eksisterende formularer på din løsning. Vælg "Tilmeldingsformular"
- Vælg "Template" frem for "Automatic" og vælg "Bootstrap3.cshtml" som skabelon. Dette forudsætter en nyere version af Conceptweb. Kontakt os, hvis du ikke har denne skabelon tilgængelig.
- Nederst under "Maks. antal indsendte" kan du angive den øvre grænse for tilladte tilmeldinger for denne formular. Vælg f.eks. 20, hvis det er kapaciteten for dit arrangement.
- Vælg "Videresend til side" og tryk på ikonet ud for "Side". Naviger til den nyoprettede underside "Venteliste" og vælg den.
- Tryk "Gem og luk" øverst til venstre
Bemærk at der er en række indstillinger på modulet, som ikke gennemgåes her. Du har mulighed for at vælge bl.a. skabelon for formularen, besked til brugeren ved indsendelse, e-mail kvittering og e-mail notificering. Disse indstillinger er beskrevet generelt i DynamicWebs manual.
Når grænsen for almindelige tilmeldinger (her 20) er nået, vil besøgende automatisk blive viderestillet til siden med vensteliste-formularen, når de forsøger at se siden med den regulære tilmelding.
Indsættelse af venteliste formular
- På undersiden "Venteliste" indsættes et afsnit på samme måde
- Vælg "Modul" øverst og vælg "Forms for editors"
- Under "Formular" vælges "Venteliste"
- Vælg "Bootstrap3.cshtml" som skabelon.
- Tryk "Gem og luk" øverst til venstre
Tilmeldingen til ventelisten er hermed også klar. Vi anbefaler, at man skriver en smule forklarende tekst til den besøgende, for at kommunikere konteksten og forskellen på de to formularer.
Opret visning af tilmeldte
Her viser vi, hvordan man nemt opretter en side med et overblik over indsendelser af en given formular. Dette forudsætter en nyere version af Conceptweb.
- Vælg en eksisterende side, hvor du ønsker listerne vist eller opret en ny. Det kan f.eks. være en underside til siden "Tilmelding" fra tidligere eksempel.
- Opret et nyt afsnit kaldet "Tilmeldte"
- Vælg "Modul" øverst og vælg "Forms for editors"
- Under formular vælges "Tilmeldingsformular" - eller en anden formular, som du ønsker indsendelserne vist for
- Vælg "Template" frem for "Automatic" og vælg "Indsendelser.html"
- Tryk "Gem og luk" øverst
Du har nu oprettet et afsnit, der viser alle indsendte informationer fra formularen "Tilmeldingsformular". Gentag ovennævnte og vælg i stedet "Venteliste" i punkt 4 for også at vise indsendelserne til ventelisten.
Er informationerne beregnet til internt brug kan siden gøres "Ikke publiceret". Der kan også være brugsscenarier, hvor indsendelserne placeres på samme side som formularen.