[{"data":1,"prerenderedAt":1398},["ShallowReactive",2],{"navigation_docs":3,"-guide-modules-forms":613,"-guide-modules-forms-surround":1395},[4,39,101,378,540,562,584,606],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":38},"Start","i-lucide-rocket","\u002Fstart","1.start",[10,14,18,22,26,30,34],{"title":11,"path":12,"stem":13},"Our approach","\u002Fstart\u002Four-approach","1.start\u002F0.our-approach",{"title":15,"path":16,"stem":17},"Introduction","\u002Fstart\u002Fintroduction","1.start\u002F1.introduction",{"title":19,"path":20,"stem":21},"Concepts","\u002Fstart\u002Fconcepts","1.start\u002F2.concepts",{"title":23,"path":24,"stem":25},"Glossary","\u002Fstart\u002Fglossary","1.start\u002F3.glossary",{"title":27,"path":28,"stem":29},"Try it locally","\u002Fstart\u002Ftry-it-locally","1.start\u002F4.try-it-locally",{"title":31,"path":32,"stem":33},"Features","\u002Fstart\u002Ffeatures","1.start\u002F5.features",{"title":35,"path":36,"stem":37},"Questions","\u002Fstart\u002Ffaq","1.start\u002F6.faq",false,{"title":40,"icon":41,"path":42,"stem":43,"children":44,"page":38},"Run SHADE","i-lucide-server","\u002Frun","2.run",[45,49,53,57,61,65,69,73,77,81,85,89,93,97],{"title":46,"path":47,"stem":48},"Setting up an instance (Coolify)","\u002Frun\u002Fcoolify","2.run\u002F1.coolify",{"title":50,"path":51,"stem":52},"Console commands","\u002Frun\u002Fconsole","2.run\u002F10.console",{"title":54,"path":55,"stem":56},"Rotating APP_SECRET","\u002Frun\u002Frotating-app-secret","2.run\u002F11.rotating-app-secret",{"title":58,"path":59,"stem":60},"Checking an instance","\u002Frun\u002Fdoctor","2.run\u002F12.doctor",{"title":62,"path":63,"stem":64},"Self-hosting by hand","\u002Frun\u002Fown-server-by-hand","2.run\u002F13.own-server-by-hand",{"title":66,"path":67,"stem":68},"NixOS (experimental)","\u002Frun\u002Fnixos","2.run\u002F14.nixos",{"title":70,"path":71,"stem":72},"Self-hosting without Coolify","\u002Frun\u002Fown-server","2.run\u002F2.own-server",{"title":74,"path":75,"stem":76},"Hosting the site on a static host","\u002Frun\u002Fstatic-hosts","2.run\u002F3.static-hosts",{"title":78,"path":79,"stem":80},"Licence","\u002Frun\u002Flicence","2.run\u002F4.licence",{"title":82,"path":83,"stem":84},"Updating and backups","\u002Frun\u002Fupdating-and-backups","2.run\u002F5.updating-and-backups",{"title":86,"path":87,"stem":88},"Troubleshooting","\u002Frun\u002Ftroubleshooting","2.run\u002F6.troubleshooting",{"title":90,"path":91,"stem":92},"Logs, request ids, traces and metrics","\u002Frun\u002Flogs","2.run\u002F7.logs",{"title":94,"path":95,"stem":96},"Maintenance mode","\u002Frun\u002Fmaintenance-mode","2.run\u002F8.maintenance-mode",{"title":98,"path":99,"stem":100},"Usage limits","\u002Frun\u002Fusage-limits","2.run\u002F9.usage-limits",{"title":102,"icon":103,"path":104,"stem":105,"children":106},"Guide","i-lucide-book-open","\u002Fguide","3.guide",[107,109,147,192,210,280,310,364],{"title":102,"path":104,"stem":108},"3.guide\u002Findex",{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":38},"Content","i-lucide-file-text","\u002Fguide\u002Fcontent","3.guide\u002F1.content",[115,119,123,127,131,135,139,143],{"title":116,"path":117,"stem":118},"Collections and entries","\u002Fguide\u002Fcontent\u002Fcollections","3.guide\u002F1.content\u002F1.collections",{"title":120,"path":121,"stem":122},"Field types","\u002Fguide\u002Fcontent\u002Ffields","3.guide\u002F1.content\u002F2.fields",{"title":124,"path":125,"stem":126},"Drafts, publishing and version history","\u002Fguide\u002Fcontent\u002Fversions","3.guide\u002F1.content\u002F3.versions",{"title":128,"path":129,"stem":130},"Languages","\u002Fguide\u002Fcontent\u002Flanguages","3.guide\u002F1.content\u002F4.languages",{"title":132,"path":133,"stem":134},"Data sources","\u002Fguide\u002Fcontent\u002Fdata-sources","3.guide\u002F1.content\u002F5.data-sources",{"title":136,"path":137,"stem":138},"Media","\u002Fguide\u002Fcontent\u002Fmedia","3.guide\u002F1.content\u002F6.media",{"title":140,"path":141,"stem":142},"Search","\u002Fguide\u002Fcontent\u002Fsearch","3.guide\u002F1.content\u002F7.search",{"title":144,"path":145,"stem":146},"Trash","\u002Fguide\u002Fcontent\u002Ftrash","3.guide\u002F1.content\u002F8.trash",{"title":148,"icon":149,"path":150,"stem":151,"children":152,"page":38},"Website","i-lucide-globe","\u002Fguide\u002Fwebsite","3.guide\u002F2.website",[153,156,160,164,168,172,176,180,184,188],{"title":148,"path":154,"stem":155},"\u002Fguide\u002Fwebsite\u002Fwebsite","3.guide\u002F2.website\u002F1.website",{"title":157,"path":158,"stem":159},"Scroll scenes","\u002Fguide\u002Fwebsite\u002Fscroll-scenes","3.guide\u002F2.website\u002F10.scroll-scenes",{"title":161,"path":162,"stem":163},"Pages and posts","\u002Fguide\u002Fwebsite\u002Fpages","3.guide\u002F2.website\u002F2.pages",{"title":165,"path":166,"stem":167},"The visual editor","\u002Fguide\u002Fwebsite\u002Fvisual-editor","3.guide\u002F2.website\u002F3.visual-editor",{"title":169,"path":170,"stem":171},"Roles and locks","\u002Fguide\u002Fwebsite\u002Froles-and-locks","3.guide\u002F2.website\u002F4.roles-and-locks",{"title":173,"path":174,"stem":175},"Header and footer","\u002Fguide\u002Fwebsite\u002Fheader-and-footer","3.guide\u002F2.website\u002F5.header-and-footer",{"title":177,"path":178,"stem":179},"Theme","\u002Fguide\u002Fwebsite\u002Ftheme","3.guide\u002F2.website\u002F6.theme",{"title":181,"path":182,"stem":183},"Redirects","\u002Fguide\u002Fwebsite\u002Fredirects","3.guide\u002F2.website\u002F7.redirects",{"title":185,"path":186,"stem":187},"Site settings","\u002Fguide\u002Fwebsite\u002Fsite-settings","3.guide\u002F2.website\u002F8.site-settings",{"title":189,"path":190,"stem":191},"The site","\u002Fguide\u002Fwebsite\u002Fthe-site","3.guide\u002F2.website\u002F9.the-site",{"title":193,"icon":194,"path":195,"stem":196,"children":197,"page":38},"Publishing","i-lucide-send","\u002Fguide\u002Fpublishing","3.guide\u002F3.publishing",[198,202,206],{"title":199,"path":200,"stem":201},"Publishing and preview","\u002Fguide\u002Fpublishing\u002Fpublishing","3.guide\u002F3.publishing\u002F1.publishing",{"title":203,"path":204,"stem":205},"Builds","\u002Fguide\u002Fpublishing\u002Fbuilds","3.guide\u002F3.publishing\u002F2.builds",{"title":207,"path":208,"stem":209},"CDN caches","\u002Fguide\u002Fpublishing\u002Fcaches","3.guide\u002F3.publishing\u002F3.caches",{"title":211,"icon":212,"path":213,"stem":214,"children":215,"page":38},"People, security and privacy","i-lucide-shield","\u002Fguide\u002Fpeople-and-security","3.guide\u002F4.people-and-security",[216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276],{"title":217,"path":218,"stem":219},"People in SHADE","\u002Fguide\u002Fpeople-and-security\u002Fpeople-in-shade","3.guide\u002F4.people-and-security\u002F0.people-in-shade",{"title":221,"path":222,"stem":223},"Team and roles","\u002Fguide\u002Fpeople-and-security\u002Fteam","3.guide\u002F4.people-and-security\u002F1.team",{"title":225,"path":226,"stem":227},"Errors and security alerts","\u002Fguide\u002Fpeople-and-security\u002Ferrors","3.guide\u002F4.people-and-security\u002F10.errors",{"title":229,"path":230,"stem":231},"Exporting an instance","\u002Fguide\u002Fpeople-and-security\u002Fexporting","3.guide\u002F4.people-and-security\u002F11.exporting",{"title":233,"path":234,"stem":235},"Organisations","\u002Fguide\u002Fpeople-and-security\u002Forganisations","3.guide\u002F4.people-and-security\u002F12.organisations",{"title":237,"path":238,"stem":239},"Signing in through an identity provider (team)","\u002Fguide\u002Fpeople-and-security\u002Fidentity-providers","3.guide\u002F4.people-and-security\u002F13.identity-providers",{"title":241,"path":242,"stem":243},"System status","\u002Fguide\u002Fpeople-and-security\u002Fsystem-status","3.guide\u002F4.people-and-security\u002F14.system-status",{"title":245,"path":246,"stem":247},"Appearance","\u002Fguide\u002Fpeople-and-security\u002Fappearance","3.guide\u002F4.people-and-security\u002F15.appearance",{"title":249,"path":250,"stem":251},"Accounts and personal pages","\u002Fguide\u002Fpeople-and-security\u002Faccounts","3.guide\u002F4.people-and-security\u002F2.accounts",{"title":253,"path":254,"stem":255},"Signing in (team)","\u002Fguide\u002Fpeople-and-security\u002Fsign-in","3.guide\u002F4.people-and-security\u002F3.sign-in",{"title":257,"path":258,"stem":259},"API tokens","\u002Fguide\u002Fpeople-and-security\u002Fapi-tokens","3.guide\u002F4.people-and-security\u002F4.api-tokens",{"title":261,"path":262,"stem":263},"Audit log","\u002Fguide\u002Fpeople-and-security\u002Faudit","3.guide\u002F4.people-and-security\u002F5.audit",{"title":265,"path":266,"stem":267},"Request protection","\u002Fguide\u002Fpeople-and-security\u002Fprotection","3.guide\u002F4.people-and-security\u002F6.protection",{"title":269,"path":270,"stem":271},"Personal data per person","\u002Fguide\u002Fpeople-and-security\u002Fprivacy","3.guide\u002F4.people-and-security\u002F7.privacy",{"title":273,"path":274,"stem":275},"Data retention","\u002Fguide\u002Fpeople-and-security\u002Fretention","3.guide\u002F4.people-and-security\u002F8.retention",{"title":277,"path":278,"stem":279},"Consent banner","\u002Fguide\u002Fpeople-and-security\u002Fconsent","3.guide\u002F4.people-and-security\u002F9.consent",{"title":281,"icon":282,"path":283,"stem":284,"children":285,"page":38},"Services","i-lucide-plug","\u002Fguide\u002Fservices","3.guide\u002F5.services",[286,290,294,298,302,306],{"title":287,"path":288,"stem":289},"Email","\u002Fguide\u002Fservices\u002Femail","3.guide\u002F5.services\u002F1.email",{"title":291,"path":292,"stem":293},"Opening hours","\u002Fguide\u002Fservices\u002Fopening-hours","3.guide\u002F5.services\u002F4.opening-hours",{"title":295,"path":296,"stem":297},"Webhooks","\u002Fguide\u002Fservices\u002Fwebhooks","3.guide\u002F5.services\u002F5.webhooks",{"title":299,"path":300,"stem":301},"Locations","\u002Fguide\u002Fservices\u002Flocations","3.guide\u002F5.services\u002F6.locations",{"title":303,"path":304,"stem":305},"VAT rates","\u002Fguide\u002Fservices\u002Fvat-rates","3.guide\u002F5.services\u002F7.vat-rates",{"title":307,"path":308,"stem":309},"Channels","\u002Fguide\u002Fservices\u002Fchannels","3.guide\u002F5.services\u002F8.channels",{"title":311,"icon":312,"path":313,"stem":314,"children":315,"page":38},"InstalledModules","i-lucide-puzzle","\u002Fguide\u002Fmodules","3.guide\u002F6.modules",[316,320,324,328,332,336,340,344,348,352,356,360],{"title":317,"path":318,"stem":319},"Modules","\u002Fguide\u002Fmodules\u002Fmanaging","3.guide\u002F6.modules\u002F1.managing",{"title":321,"path":322,"stem":323},"Dutch services (module)","\u002Fguide\u002Fmodules\u002Fnl","3.guide\u002F6.modules\u002F10.nl",{"title":325,"path":326,"stem":327},"Editorial (module)","\u002Fguide\u002Fmodules\u002Feditorial","3.guide\u002F6.modules\u002F11.editorial",{"title":329,"path":330,"stem":331},"Appointments (module)","\u002Fguide\u002Fmodules\u002Fappointments","3.guide\u002F6.modules\u002F2.appointments",{"title":333,"path":334,"stem":335},"Shop (the commerce module)","\u002Fguide\u002Fmodules\u002Fshop","3.guide\u002F6.modules\u002F3.shop",{"title":337,"path":338,"stem":339},"Untrusted modules","\u002Fguide\u002Fmodules\u002Funtrusted","3.guide\u002F6.modules\u002F4.untrusted",{"title":341,"path":342,"stem":343},"Analytics (module)","\u002Fguide\u002Fmodules\u002Fanalytics","3.guide\u002F6.modules\u002F5.analytics",{"title":345,"path":346,"stem":347},"Error forwarding (module)","\u002Fguide\u002Fmodules\u002Ferror-forwarding","3.guide\u002F6.modules\u002F6.error-forwarding",{"title":349,"path":350,"stem":351},"Client programs","\u002Fguide\u002Fmodules\u002Fprograms","3.guide\u002F6.modules\u002F7.programs",{"title":353,"path":354,"stem":355},"Import and export (module)","\u002Fguide\u002Fmodules\u002Fimport","3.guide\u002F6.modules\u002F8.import",{"title":357,"path":358,"stem":359},"Payments (module)","\u002Fguide\u002Fmodules\u002Fpayments","3.guide\u002F6.modules\u002F8.payments",{"title":361,"path":362,"stem":363},"Forms (module)","\u002Fguide\u002Fmodules\u002Fforms","3.guide\u002F6.modules\u002F9.forms",{"title":365,"icon":366,"path":367,"stem":368,"children":369,"page":38},"AI assistants","i-lucide-bot","\u002Fguide\u002Fai","3.guide\u002F7.ai",[370,374],{"title":371,"path":372,"stem":373},"AI assistants (MCP)","\u002Fguide\u002Fai\u002Fassistants","3.guide\u002F7.ai\u002F1.assistants",{"title":375,"path":376,"stem":377},"Connecting an AI assistant","\u002Fguide\u002Fai\u002Fconnecting","3.guide\u002F7.ai\u002F2.connecting",{"title":379,"icon":380,"path":381,"stem":382,"children":383,"page":38},"Developers","i-lucide-code","\u002Fdevelopers","4.developers",[384,388,392,396,400,404,408,412,416,420,424,428,432,435,489,493,497,501,536],{"title":385,"path":386,"stem":387},"Architecture","\u002Fdevelopers\u002Farchitecture","4.developers\u002F1.architecture",{"title":389,"path":390,"stem":391},"Capabilities","\u002Fdevelopers\u002Fcapabilities","4.developers\u002F10.capabilities",{"title":393,"path":394,"stem":395},"Trust","\u002Fdevelopers\u002Ftrust","4.developers\u002F11.trust",{"title":397,"path":398,"stem":399},"Redis and the ports","\u002Fdevelopers\u002Fredis","4.developers\u002F12.redis",{"title":401,"path":402,"stem":403},"The worker container role","\u002Fdevelopers\u002Fworker","4.developers\u002F13.worker",{"title":405,"path":406,"stem":407},"kv: a module's own key-value storage","\u002Fdevelopers\u002Fkv","4.developers\u002F14.kv",{"title":409,"path":410,"stem":411},"Processes: long-running work on the worker","\u002Fdevelopers\u002Fprocesses","4.developers\u002F15.processes",{"title":413,"path":414,"stem":415},"Network: a module's outgoing calls","\u002Fdevelopers\u002Fnetwork","4.developers\u002F16.network",{"title":417,"path":418,"stem":419},"Realtime","\u002Fdevelopers\u002Frealtime","4.developers\u002F17.realtime",{"title":421,"path":422,"stem":423},"Private files","\u002Fdevelopers\u002Ffiles","4.developers\u002F18.files",{"title":425,"path":426,"stem":427},"Notify","\u002Fdevelopers\u002Fnotify","4.developers\u002F19.notify",{"title":429,"path":430,"stem":431},"Collections","\u002Fdevelopers\u002Fcollections","4.developers\u002F2.collections",{"title":337,"path":433,"stem":434},"\u002Fdevelopers\u002Funtrusted","4.developers\u002F20.untrusted",{"title":436,"icon":312,"path":437,"stem":438,"children":439},"Writing a plugin","\u002Fdevelopers\u002Fmodules","4.developers\u002F3.modules\u002Findex",[440,442,446,450,454,458,462,466,470,473,477,481,485],{"title":441,"path":437,"stem":438},"Writing a module",{"title":443,"path":444,"stem":445},"Module SDK and tooling","\u002Fdevelopers\u002Fmodules\u002Fsdk-and-tooling","4.developers\u002F3.modules\u002F1.sdk-and-tooling",{"title":447,"path":448,"stem":449},"Connecting accounts with OAuth2","\u002Fdevelopers\u002Fmodules\u002Foauth","4.developers\u002F3.modules\u002F10.oauth",{"title":451,"path":452,"stem":453},"Calls between modules","\u002Fdevelopers\u002Fmodules\u002Fcalls-between-modules","4.developers\u002F3.modules\u002F11.calls-between-modules",{"title":455,"path":456,"stem":457},"Experimental parts","\u002Fdevelopers\u002Fmodules\u002Fexperimental-parts","4.developers\u002F3.modules\u002F12.experimental-parts",{"title":459,"path":460,"stem":461},"The manifest","\u002Fdevelopers\u002Fmodules\u002Fmanifest","4.developers\u002F3.modules\u002F2.manifest",{"title":463,"path":464,"stem":465},"Routes","\u002Fdevelopers\u002Fmodules\u002Froutes","4.developers\u002F3.modules\u002F3.routes",{"title":467,"path":468,"stem":469},"Admin screens and the site part","\u002Fdevelopers\u002Fmodules\u002Fadmin-and-site","4.developers\u002F3.modules\u002F4.admin-and-site",{"title":110,"path":471,"stem":472},"\u002Fdevelopers\u002Fmodules\u002Fcontent","4.developers\u002F3.modules\u002F5.content",{"title":474,"path":475,"stem":476},"Background work and services","\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services","4.developers\u002F3.modules\u002F6.background-and-services",{"title":478,"path":479,"stem":480},"SDK reference","\u002Fdevelopers\u002Fmodules\u002Fsdk-reference","4.developers\u002F3.modules\u002F7.sdk-reference",{"title":482,"path":483,"stem":484},"The website module's SDK","\u002Fdevelopers\u002Fmodules\u002Fwebsite-sdk","4.developers\u002F3.modules\u002F8.website-sdk",{"title":486,"path":487,"stem":488},"Incoming webhooks","\u002Fdevelopers\u002Fmodules\u002Fincoming-webhooks","4.developers\u002F3.modules\u002F9.incoming-webhooks",{"title":490,"path":491,"stem":492},"Core and the website module","\u002Fdevelopers\u002Fcore-and-website-module","4.developers\u002F4.core-and-website-module",{"title":494,"path":495,"stem":496},"The API","\u002Fdevelopers\u002Fapi","4.developers\u002F6.api",{"title":498,"path":499,"stem":500},"API reference","\u002Fdevelopers\u002Fapi-reference","4.developers\u002F6.api-reference",{"title":502,"icon":503,"path":504,"stem":505,"children":506},"Sites in other frameworks","i-lucide-layout-template","\u002Fdevelopers\u002Fframeworks","4.developers\u002F7.frameworks\u002Findex",[507,508,512,516,520,524,528,532],{"title":502,"path":504,"stem":505},{"title":509,"path":510,"stem":511},"Accounts: sign-in and modules' routes","\u002Fdevelopers\u002Fframeworks\u002Faccounts","4.developers\u002F7.frameworks\u002F1.accounts",{"title":513,"path":514,"stem":515},"`@shadestack\u002Ftree`","\u002Fdevelopers\u002Fframeworks\u002Ftree","4.developers\u002F7.frameworks\u002F2.tree",{"title":517,"path":518,"stem":519},"Expressions and styles","\u002Fdevelopers\u002Fframeworks\u002Fexpressions-and-styles","4.developers\u002F7.frameworks\u002F3.expressions-and-styles",{"title":521,"path":522,"stem":523},"`@shadestack\u002Frender`","\u002Fdevelopers\u002Fframeworks\u002Frender","4.developers\u002F7.frameworks\u002F4.render",{"title":525,"path":526,"stem":527},"`@shadestack\u002Finteractions`","\u002Fdevelopers\u002Fframeworks\u002Finteractions","4.developers\u002F7.frameworks\u002F5.interactions",{"title":529,"path":530,"stem":531},"`@shadestack\u002Fa11y`","\u002Fdevelopers\u002Fframeworks\u002Fa11y","4.developers\u002F7.frameworks\u002F6.a11y",{"title":533,"path":534,"stem":535},"Your own page for SHADE's links","\u002Fdevelopers\u002Fframeworks\u002Flinks","4.developers\u002F7.frameworks\u002F7.links",{"title":537,"path":538,"stem":539},"Build a client module","\u002Fdevelopers\u002Fclient-module","4.developers\u002F9.client-module",{"title":541,"icon":542,"path":543,"stem":544,"children":545,"page":38},"Security","i-lucide-shield-check","\u002Fsecurity","5.security",[546,550,554,558],{"title":547,"path":548,"stem":549},"Reporting a vulnerability","\u002Fsecurity\u002Freporting","5.security\u002F0.reporting",{"title":551,"path":552,"stem":553},"Security testing","\u002Fsecurity\u002Ftesting","5.security\u002F1.testing",{"title":555,"path":556,"stem":557},"Hardening a production instance","\u002Fsecurity\u002Fhardening","5.security\u002F2.hardening",{"title":559,"path":560,"stem":561},"Manual testing with Kali Linux","\u002Fsecurity\u002Fmanual-testing","5.security\u002F3.manual-testing",{"title":563,"icon":564,"path":565,"stem":566,"children":567,"page":38},"Contributing","i-lucide-git-pull-request","\u002Fcontributing","6.contributing",[568,572,576,580],{"title":569,"path":570,"stem":571},"Reading the code","\u002Fcontributing\u002Freading-the-code","6.contributing\u002F1.reading-the-code",{"title":573,"path":574,"stem":575},"Docs site","\u002Fcontributing\u002Fdocs-site","6.contributing\u002F2.docs-site",{"title":577,"path":578,"stem":579},"Releases","\u002Fcontributing\u002Freleases","6.contributing\u002F3.releases",{"title":581,"path":582,"stem":583},"Load tests","\u002Fcontributing\u002Fload-tests","6.contributing\u002F4.load-tests",{"title":585,"icon":586,"path":587,"stem":588,"children":589,"page":38},"Project","i-lucide-map","\u002Fproject","7.project",[590,594,598,602],{"title":591,"path":592,"stem":593},"Roadmap","\u002Fproject\u002Froadmap","7.project\u002F1.roadmap",{"title":595,"path":596,"stem":597},"Known issues","\u002Fproject\u002Fknown-issues","7.project\u002F2.known-issues",{"title":599,"path":600,"stem":601},"Changelog","\u002Fproject\u002Fchangelog","7.project\u002F3.changelog",{"title":603,"path":604,"stem":605},"Decisions","\u002Fproject\u002Fdecisions","7.project\u002F4.decisions",{"title":607,"path":608,"stem":609,"children":610,"icon":612},"Community","\u002Fcommunity","8.community\u002Findex",[611],{"title":607,"path":608,"stem":609},"i-lucide-users",{"id":614,"title":361,"body":615,"description":1369,"extension":1389,"links":1390,"meta":1391,"navigation":1392,"path":362,"seo":1393,"stem":363,"__hash__":1394},"docs\u002F3.guide\u002F6.modules\u002F9.forms.md",{"type":616,"value":617,"toc":1368},"minimark",[618,639,644,690,694,776,791,795,800,908,911,916,919,943,946,957,960,973,1024,1028,1038,1040,1050,1053,1061,1089,1092,1102,1112,1116,1126,1132,1135,1138,1144,1157,1160,1163,1217,1230,1253,1257],[619,620,621,622,625,626,630,631,634,635,638],"p",{},"Forms is an official module: an admin installs it and switches it on under ",[623,624,317],"strong",{},"\n(",[627,628,629],"a",{"href":318},"Managing modules","). Then editors build their own forms (a sign-up, a quote request, a registration)\nwithout a developer: a list of fields, a button and a thank-you message. What visitors send is stored in SHADE, shown\nunder ",[623,632,633],{},"Form submissions",", and optionally emailed. A website page shows a form through the module's ",[623,636,637],{},"Form"," starter.",[640,641,643],"h2",{"id":642},"what-users-can-do","What users can do",[645,646,647,670,684],"ul",{},[648,649,650,653,654,657,658,661,662,665,666,669],"li",{},[623,651,652],{},"Editors and admins"," build forms in ",[623,655,656],{},"Forms"," (in the sidebar's Content section), save drafts and publish them like any\nentry (see ",[627,659,660],{"href":117},"collections"," and ",[627,663,664],{"href":125},"versions","), and translate\nthem (see ",[627,667,668],{"href":129},"languages","). They read the submissions, reply to them by email, download\nthem as CSV and delete them.",[648,671,672,675,676,678,679,683],{},[623,673,674],{},"Admins"," also add the ",[623,677,637],{}," starter to the website editor, once per published form\n(see ",[627,680,682],{"href":681},"#on-a-website-page","On a website page",").",[648,685,686,689],{},[623,687,688],{},"Visitors"," fill in and send the form on the site. They see the confirmation message, or an error message in the\npage's language.",[640,691,693],{"id":692},"who-may-do-it","Who may do it",[695,696,697,713],"table",{},[698,699,700],"thead",{},[701,702,703,707,710],"tr",{},[704,705,706],"th",{},"Action",[704,708,709],{},"Permission",[704,711,712],{},"Roles",[714,715,716,741,753,765],"tbody",{},[701,717,718,722,738],{},[719,720,721],"td",{},"Build, edit, publish, delete forms",[719,723,724,728,729,728,732,728,735],{},[725,726,727],"code",{},"collections.forms-forms.create"," \u002F ",[725,730,731],{},".update",[725,733,734],{},".publish",[725,736,737],{},".delete",[719,739,740],{},"admin, editor",[701,742,743,746,751],{},[719,744,745],{},"Read the submissions, reply, download CSV",[719,747,748],{},[725,749,750],{},"forms.submissions.read",[719,752,740],{},[701,754,755,758,763],{},[719,756,757],{},"Delete a submission",[719,759,760],{},[725,761,762],{},"forms.submissions.delete",[719,764,740],{},[701,766,767,770,773],{},[719,768,769],{},"Send a form",[719,771,772],{},"none (anyone, with a limit per visitor)",[719,774,775],{},"anyone",[619,777,778,779,783,784,661,787,790],{},"AI users never hold those two actions. They have the smaller ones in ",[627,780,782],{"href":781},"#ai-tools","AI tools",": ",[725,785,786],{},"forms.ai.read",[725,788,789],{},"forms.ai.triage",".",[640,792,794],{"id":793},"the-form","The form",[619,796,797,799],{},[623,798,656],{}," is the normal collection list and entry editor. A form has:",[695,801,802,812],{},[698,803,804],{},[701,805,806,809],{},[704,807,808],{},"Field",[704,810,811],{},"Notes",[714,813,814,822,830,860,868,876,884,892],{},[701,815,816,819],{},[719,817,818],{},"Name",[719,820,821],{},"For you; visitors do not see it.",[701,823,824,827],{},[719,825,826],{},"Key",[719,828,829],{},"The form's own key, in the form's data. It follows the name until the form is published and then stays.",[701,831,832,835],{},[719,833,834],{},"Fields",[719,836,837,838,841,842,841,845,841,848,851,852,841,855,661,857,790],{},"A list. Per field: ",[623,839,840],{},"Label",", ",[623,843,844],{},"Type",[623,846,847],{},"Required",[623,849,850],{},"Choices"," (for a choice from a list or of buttons), ",[623,853,854],{},"Help text",[623,856,826],{},[623,858,859],{},"Purpose",[701,861,862,865],{},[719,863,864],{},"Button label",[719,866,867],{},"The text of the send button.",[701,869,870,873],{},[719,871,872],{},"Message after sending",[719,874,875],{},"What the visitor sees once the form is sent.",[701,877,878,881],{},[719,879,880],{},"Consent checkbox",[719,882,883],{},"Empty: no checkbox. Otherwise visitors must tick it to send the form.",[701,885,886,889],{},[719,887,888],{},"Email submissions to",[719,890,891],{},"Addresses separated by commas. Empty: submissions are only kept in the admin.",[701,893,894,897],{},[719,895,896],{},"Send the sender a confirmation",[719,898,899,900,904,905,790],{},"Off by default. Sends the sender an email with a copy of what they sent (see ",[627,901,903],{"href":902},"#the-senders-confirmation","The sender's confirmation","). Needs a field with the purpose ",[906,907,287],"em",{},[619,909,910],{},"Field types: short text, long text, email address, phone number, number, date, choice from a list, choice of buttons\nand checkbox. A choice from a list is a drop-down; a choice of buttons shows each choice as a radio button, grouped\nunder the field's label.",[912,913,915],"h3",{"id":914},"keys","Keys",[619,917,918],{},"Every field and every choice has a key. A key follows its label until the form is published, and then stays: renaming\na label never changes it. A field of another type needs a new key. The form has a key of its own too.",[619,920,921,922,841,925,841,928,931,932,935,936,931,939,942],{},"Keys may not be ",[725,923,924],{},"form",[725,926,927],{},"website",[725,929,930],{},"consent"," or ",[725,933,934],{},"language",", nor a name the page or another form already uses (names\nsuch as ",[725,937,938],{},"action",[725,940,941],{},"submit"," would clash with the page itself). Publishing is refused when a published form's key\nchanges, or a key's type.",[912,944,859],{"id":945},"purpose",[619,947,948,949,952,953,683],{},"A field may have a purpose, one of the names browsers know for filling in forms: email, full name, first name, last\nname, phone, organisation, street and number, postcode, town or city, country. Only one field of a form has each\npurpose. The browser uses it to suggest the visitor's own details, and SHADE uses the answer to the field with purpose\n",[906,950,951],{},"email"," to link the submission to a contact (see ",[627,954,956],{"href":955},"#privacy-and-retention","Privacy and retention",[640,958,633],{"id":959},"form-submissions",[619,961,962,964,965,968,969,972],{},[623,963,633],{}," (in the sidebar's Content) is the inbox. A submission is ",[906,966,967],{},"new"," until someone reads it. A dashboard card counts the\nnew ones, and the new ones are in the admin's ",[627,970,971],{"href":104},"Inbox"," too, beside what else waits.",[645,974,975,986,994,1004],{},[648,976,977,978,981,982,985],{},"Open a submission to read it: it opens beside the list (as a sheet on a phone) with every answer under its field's\nlabel, when it was sent and the consent, and opening it marks it read. ",[906,979,980],{},"Sent from"," names the page the form was on,\nwhile that page has an address on the site. Its ",[623,983,984],{},"History"," says when it was received, when the notification email\nwent out and when it was marked read.",[648,987,988,991,992,683],{},[623,989,990],{},"Reply"," writes an email to the sender, from SHADE's email (",[627,993,287],{"href":288},[648,995,996,999,1000,1003],{},[623,997,998],{},"Delete"," removes one submission, after a confirmation. ",[623,1001,1002],{},"Delete all"," removes every submission of a form. It is\nremoved for good, for example when someone asks for their data to be erased.",[648,1005,1006,1009,1010,841,1013,1016,1017,931,1020,1023],{},[623,1007,1008],{},"Download CSV"," gives the submissions of a form in UTF-8, one column per field key. Values that start with ",[725,1011,1012],{},"=",[725,1014,1015],{},"+",",\n",[725,1018,1019],{},"-",[725,1021,1022],{},"@",", a tab or a line break get a quote mark in front, so spreadsheets do not run them as formulas. The download\nworks only from a signed-in session, never with an API token, because it holds personal data.",[912,1025,1027],{"id":1026},"the-teams-chats","The team's chats",[619,1029,1030,1031,1034,1035,1037],{},"Each submission can also tell the team's chats (Slack, Discord, Matrix or a webhook). An admin ticks the message\n",[725,1032,1033],{},"forms.submission"," on a channel (",[627,1036,307],{"href":308},"). The message says which form was sent and\nwhen, with a link to it in the inbox. It never holds the answers.",[912,1039,287],{"id":951},[619,1041,1042,1043,1046,1047,1049],{},"Each submission is emailed to the form's addresses, with one block per field, and the sender's address as reply-to.\nThe email's text is on the ",[623,1044,1045],{},"Messages"," screen (Modules group, ",[725,1048,1033],{},"), where it can be changed. A failure\n(including email not set up) is logged and never shown to the visitor; the submission is kept.",[912,1051,903],{"id":1052},"the-senders-confirmation",[619,1054,1055,1056,1058,1059,790],{},"With ",[623,1057,896],{}," on, the address the visitor typed gets one email after the form is sent. It\ncomes after the spam check and the proof of work, so a bot gets nothing. Publishing is refused while the form has no\nfield with the purpose ",[906,1060,287],{},[645,1062,1063,1070,1077,1080],{},[648,1064,1065,1066,1069],{},"The email holds a copy of what the visitor sent. Long free text is cut to a preview of 200 characters, and nothing in\nit is clickable: dots and ",[725,1067,1068],{},":\u002F\u002F"," are defused, so an address or a link typed into a field cannot become a link.",[648,1071,1072,1073,1076],{},"While the person's contact is unconfirmed, the email also holds SHADE's ",[906,1074,1075],{},"Confirm your address"," link. Using it\nconfirms the contact. A contact that is already confirmed gets no link.",[648,1078,1079],{},"At most about 3 an hour are sent per visitor and per address. It is never marketing.",[648,1081,1082,1083,1046,1085,1088],{},"The email's text is on the ",[623,1084,1045],{},[725,1086,1087],{},"forms.confirmation","), where it can be changed. A\nfailure is logged and never shown to the visitor; the submission is kept.",[640,1090,682],{"id":1091},"on-a-website-page",[619,1093,1094,1095,1097,1098,1101],{},"The module gives the website editor a ",[623,1096,637],{}," starter with a pick. On the ",[623,1099,1100],{},"Components"," screen an admin adds the\nstarter once per published form, choosing the form. Its fields come from the form as published, in the page's\nlanguage, so a change to the form shows on the page when the form is published. The website editor has no form starter\nof its own any more, and no \"send to a form\" action: the module's starter does both.",[619,1103,1104,1105,1108,1109,683],{},"A form control in the visual tree may have its ",[725,1106,1107],{},"name"," bound, checked when the page is rendered\n(",[627,1110,1111],{"href":514},"The tree",[640,1113,1115],{"id":1114},"spam-and-bots","Spam and bots",[619,1117,1118,1119,1121,1122,1125],{},"Visitors send a form to the module's public route. SHADE's spam check drops bots quietly: a hidden ",[725,1120,927],{}," field\nthat people leave empty, a minimum fill time, and 5 sends per address in 10 minutes\n(",[627,1123,1124],{"href":266},"Protection","). Only a keyed hash of the address is kept.",[619,1127,1128,1129,1131],{},"On top of that, a form asks for a proof of work before it sends (ALTCHA). It runs on your own SHADE: no outside service\nand no third-party script. The visitor's browser works out the answer, well under a second, and the visitor sees\nnothing. A send without a good answer, or with one that was used before, is dropped quietly like spam. The ",[623,1130,637],{},"\nstarter does this by itself.",[619,1133,1134],{},"A form with a consent checkbox refuses a submission without it: the text must be the form's own, and it is kept with\nthe time and shown in the submission.",[640,1136,956],{"id":1137},"privacy-and-retention",[619,1139,1140,1141,1143],{},"Submissions are deleted automatically after a year (at least 30 days; admins can change it, see\n",[627,1142,273],{"href":274},"), or earlier by an editor.",[619,1145,1146,1147,1149,1150,1153,1154,683],{},"The answer to a field with purpose ",[906,1148,951],{}," links the submission to a contact in ",[623,1151,1152],{},"People",", unconfirmed until the\nperson proves the address. A person's submissions are found and erased through their contact\n(",[627,1155,1156],{"href":270},"Privacy",[640,1158,782],{"id":1159},"ai-tools",[619,1161,1162],{},"An AI assistant connected to SHADE over MCP gets four tools. They read and sort; forms are still built in the admin.",[695,1164,1165,1175],{},[698,1166,1167],{},[701,1168,1169,1172],{},[704,1170,1171],{},"Tool",[704,1173,1174],{},"What it does",[714,1176,1177,1187,1197,1207],{},[701,1178,1179,1184],{},[719,1180,1181],{},[725,1182,1183],{},"forms_list",[719,1185,1186],{},"The forms with their number of submissions and of new ones, and whether answers are allowed.",[701,1188,1189,1194],{},[719,1190,1191],{},[725,1192,1193],{},"forms_submissions",[719,1195,1196],{},"A form's submissions, newest first, at most 50. Optionally only the new ones.",[701,1198,1199,1204],{},[719,1200,1201],{},[725,1202,1203],{},"forms_submission",[719,1205,1206],{},"One submission.",[701,1208,1209,1214],{},[719,1210,1211],{},[725,1212,1213],{},"forms_mark_read",[719,1215,1216],{},"Marks submissions read or not read. This is the AI's only change.",[619,1218,1219,1220,1222,1223,1225,1226,1229],{},"The three read tools need ",[725,1221,786],{},", marking needs ",[725,1224,789],{},". The ",[725,1227,1228],{},"ai"," role has both.",[619,1231,1232,1233,1236,1237,1239,1240,1243,1244,661,1246,1248,1249,1252],{},"By default the tools show a submission's form, when it was sent, whether it is read, its language and which fields\nwere filled in (keys and kinds), and never the answers: those are visitors' personal data. An admin can change that\nwith the module's setting ",[623,1234,1235],{},"Let AI tools read what visitors send"," (",[623,1238,317],{},", Forms, ",[623,1241,1242],{},"Settings","). It is off by\ndefault and holds for the whole instance. While it is on, ",[725,1245,1193],{},[725,1247,1203],{}," also return the\nanswers (key, kind, label and value), so switch it on only if you are willing to hand visitors' answers to the AI\nservice you use. Each read with answers is written to the audit log as ",[725,1250,1251],{},"forms.ai.answers",", with which submissions.\nSwitching the setting off counts at once, from the next call.",[640,1254,1256],{"id":1255},"for-developers","For developers",[645,1258,1259,1290,1321,1327,1351,1357],{},[648,1260,1261,1264,1265,1268,1269,1272,1273,661,1275,1278,1279,1282,1283,1286,1287,683],{},[623,1262,1263],{},"Showing a form on your own frontend."," ",[725,1266,1267],{},"GET \u002Fapi\u002Fv1\u002Faccount\u002Fforms\u002Fpublished\u002F\u003Ckey>?language=\u003Ccode>"," returns the\npublished form: its fields by key with their purpose, the button, the message and the consent text, never the\naddresses. It is cached for a minute. The visitor's browser sends the answers to ",[725,1270,1271],{},"POST \u002Fapi\u002Fv1\u002Faccount\u002Fforms\u002Fsubmit",":\nthe form's id, each field's value by key, the spam check's ",[725,1274,927],{},[725,1276,1277],{},"elapsedMs",", the consent text and the page's\nlanguage, and the proof of work's answer as ",[725,1280,1281],{},"altcha",". The starter ",[725,1284,1285],{},"starters\u002Flead-site"," does exactly this\n(",[627,1288,1289],{"href":504},"Frameworks",[648,1291,1292,1264,1295,1298,1299,1302,1303,1306,1307,1309,1310,1313,1314,1317,1318,1320],{},[623,1293,1294],{},"The proof of work.",[725,1296,1297],{},"GET \u002Fapi\u002Fv1\u002Faccount\u002Fforms\u002Fchallenge"," is public and gives a new challenge each time (60 a minute\nper IP; it runs out after 30 minutes). Solve it in the browser with ",[725,1300,1301],{},"solveChallenge"," from\n",[725,1304,1305],{},"@shadestack\u002Fclient\u002Fchallenge",", which returns the answer to send as the body field ",[725,1308,1281],{},". Each answer works once.\nIn a page's tree, ",[725,1311,1312],{},"callRoute"," with ",[725,1315,1316],{},"challenge: true"," does all of this before it sends, as the ",[623,1319,637],{}," starter does.",[648,1322,1323,1326],{},[623,1324,1325],{},"Answers."," Each published version has a JSON Schema of its answers.",[648,1328,1329,1332,1333,1336,1337,1340,1341,1344,1345,625,1348,683],{},[623,1330,1331],{},"Hearing a submission."," Each submission is the event ",[725,1334,1335],{},"forms.submission.received",":\n",[725,1338,1339],{},"{ id, form: { id, key, version }, language, answers: [{ key, kind, role, value }], consent }",". Another module hears\nit in its manifest's ",[725,1342,1343],{},"on"," and filters on ",[725,1346,1347],{},"form.key",[627,1349,1350],{"href":471},"Module content",[648,1352,1353,1356],{},[623,1354,1355],{},"Not yet."," Connecting a form to a module per form, sending a submission again and a webhook with a form's answers\ncome after 0.1.0.",[648,1358,1359,1360,1363,1364,1367],{},"The code and its tests: the module's ",[725,1361,1362],{},"README.md"," in the ",[725,1365,1366],{},"shade-plugin-forms"," repository.",{"title":1369,"searchDepth":1370,"depth":1370,"links":1371},"",2,[1372,1373,1374,1379,1384,1385,1386,1387,1388],{"id":642,"depth":1370,"text":643},{"id":692,"depth":1370,"text":693},{"id":793,"depth":1370,"text":794,"children":1375},[1376,1378],{"id":914,"depth":1377,"text":915},3,{"id":945,"depth":1377,"text":859},{"id":959,"depth":1370,"text":633,"children":1380},[1381,1382,1383],{"id":1026,"depth":1377,"text":1027},{"id":951,"depth":1377,"text":287},{"id":1052,"depth":1377,"text":903},{"id":1091,"depth":1370,"text":682},{"id":1114,"depth":1370,"text":1115},{"id":1137,"depth":1370,"text":956},{"id":1159,"depth":1370,"text":782},{"id":1255,"depth":1370,"text":1256},"md",null,{},true,{"title":361,"description":1369},"a-6xi16sh6aceG4jtcluUXGBvV-nAGYxVgvPlTaMfv8",[1396,1397],{"title":357,"path":358,"stem":359,"description":1369,"children":-1},{"title":371,"path":372,"stem":373,"description":1369,"children":-1},1796500160457]