@@ -228,6 +228,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
228
228
(' required' , ' Set this to true to prevent the form contents from being sent if this field is left empty by the user.' , ' BOOL' , FALSE, TRUE),
229
229
(' min' , ' The minimum value to accept for an input of type number' , ' NUMBER' , FALSE, TRUE),
230
230
(' max' , ' The minimum value to accept for an input of type number' , ' NUMBER' , FALSE, TRUE),
231
+ (' checked' , ' Used only for checkboxes. Indicates whether the checkbox should appear as already checked.' , ' BOOL' , FALSE, TRUE),
231
232
(' step' , ' The increment of values in an input of type number. Set to 1 to allow only integers.' , ' NUMBER' , FALSE, TRUE),
232
233
(' description' , ' A helper text to display near the input field.' , ' TEXT' , FALSE, TRUE),
233
234
(' pattern' , ' A regular expression that the value must match. For instance, [0-9]{3} will only accept 3 digits.' , ' TEXT' , FALSE, TRUE),
@@ -303,7 +304,7 @@ In this example, depending on what the user clicks, the target `index.sql` page
303
304
304
305
' , json(' [{"component":"form", "method": "GET", "action": "index.sql"}, ' ||
305
306
' {"name": "fruit", "type": "radio", "value": 1, "description": "An apple a day keeps the doctor away", "label": "Apple"}, ' ||
306
- ' {"name": "fruit", "type": "radio", "value": 2, "description": "Oranges are a good source of vitamin C", "label": "Orange"}, ' ||
307
+ ' {"name": "fruit", "type": "radio", "value": 2, "description": "Oranges are a good source of vitamin C", "label": "Orange", "checked": true }, ' ||
307
308
' {"name": "fruit", "type": "radio", "value": 3, "description": "Bananas are a good source of potassium", "label": "Banana"}' ||
308
309
' ]' ));
309
310
0 commit comments