Files
Ophir LOJKINE 7457370b8d Add toast notification component with JS init, template, examples, migration, and tests (#1360)
* Support hash-triggered toasts

* Address toast review feedback

* Render toast positioning in template

* Avoid reopening initialized toasts

* Fix white toast foreground color

* Configure toasts declaratively

* Simplify toast template styling

* Address toast accessibility reviews
2026-08-03 15:50:18 +02:00
..
2024-11-26 23:26:09 +01:00
2026-06-02 15:56:27 +02:00

SQLPage multiple choice question example

This is a very simple example of a website that stores a list of possible answers to a multiple choice question in a database table, and then displays the question and the possible answers to the user.

When the user selects an answer, the website will save the user's choice in the database and display other users' choices as well.

Screenshots

Question answering form Results table Question edition
Question answering form Results table Question edition

How to run

Just run the sqlpage binary (./sqlpage.bin) from this folder.

Interesting files

admin.sql uses the dynamic component to create a single page with one form per MCQ option.

website_header.json contains the shell that is then used in all pages using the dynamic component to create a consistent look and feel between pages.