You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@
11
11
- The previous behavior is preserved (the `.sql` suffix is now optional), so this is a new feature, not a breaking change.
12
12
- Big thanks to @guspower who made big contributions to this feature.
13
13
- Update ApexCharts to [v4.4.0](https://github.com/apexcharts/apexcharts.js/releases/tag/v4.4.0): fixes multiple small bugs in the chart component.
14
+
- Add a new `auto_submit` parameter to the form component. When set to true, the form will be automatically submitted when the user changes any of its fields, and the page will be reloaded with the new value. The validation button is removed.
15
+
- This is useful to quickly create filters at the top of a dashboard or report page, that will be automatically applied when the user changes them.
Copy file name to clipboardExpand all lines: examples/official-site/sqlpage/migrations/01_documentation.sql
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -274,6 +274,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
274
274
('validate_outline', 'A color to outline the validation button.', 'COLOR', TRUE, TRUE),
275
275
('reset', 'The text to display in the button at the bottom of the form that resets the form to its original state. Omit this property not to show a reset button at all.', 'TEXT', TRUE, TRUE),
276
276
('id', 'A unique identifier for the form, which can then be used to validate the form from a button outside of the form.', 'TEXT', TRUE, TRUE),
277
+
('auto_submit', 'Automatically submit the form when the user changes any of its fields, and remove the validation button.', 'BOOLEAN', TRUE, TRUE),
277
278
-- item level
278
279
('type', 'The type of input to use: text for a simple text field, textarea for a multi-line text input control, number to accept only numbers, checkbox or radio for a button that is part of a group specified in the ''name'' parameter, hidden for a value that will be submitted but not shown to the user. text by default.', 'TEXT', FALSE, TRUE),
279
280
('name', 'The name of the input field, that you can use in the target page to get the value the user entered for the field.', 'TEXT', FALSE, FALSE),
@@ -436,6 +437,18 @@ In this example, depending on what the user clicks, the page will be reloaded wi
436
437
{"name": "component", "type": "radio", "value": "map", "checked": true, "description": "Display a map based on database data", "label": "Map"},
], "description": "Choose a component to view its documentation. No need to click a button, the page will be reloaded automatically.", "label": "Component"}
451
+
]')),
439
452
('form', 'When you want to include some information in the form data, but not display it to the user, you can use a hidden field.
440
453
441
454
This can be used to track simple data such as the current user''s id,
0 commit comments