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
add description_md to the form component
---------
Co-authored-by: Theo Cochereau <[email protected]>
Co-authored-by: Théo Cochereau <[email protected]>
Copy file name to clipboardExpand all lines: examples/official-site/sqlpage/migrations/01_documentation.sql
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -293,6 +293,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
293
293
('create_new', 'In a multiselect with a dropdown, this option allows the user to enter new values, that are not in the list of options.', 'BOOLEAN', FALSE, TRUE),
294
294
('step', 'The increment of values in an input of type number. Set to 1 to allow only integers.', 'REAL', FALSE, TRUE),
295
295
('description', 'A helper text to display near the input field.', 'TEXT', FALSE, TRUE),
296
+
('description_md', 'A helper text to display near the input field - formatted using markdown.', 'TEXT', FALSE, TRUE),
296
297
('pattern', 'A regular expression that the value must match. For instance, [0-9]{3} will only accept 3 digits.', 'TEXT', FALSE, TRUE),
297
298
('autofocus', 'Automatically focus the field when the page is loaded', 'BOOLEAN', FALSE, TRUE),
298
299
('width', 'Width of the form field, between 1 and 12.', 'INTEGER', FALSE, TRUE),
@@ -339,7 +340,7 @@ When loading the page, the value for `:username` will be `NULL` if no value has
339
340
'{"name": "Last name", "required": true, "description": "We need your last name for legal purposes."},'||
'{"name": "Password", "type": "password", "pattern": "^(?=.*[A-Za-z])(?=.*\\d)[A-Za-z\\d]{8,}$", "required": true, "description": "Minimum eight characters, at least one letter and one number."},'||
343
+
'{"name": "Password", "type": "password", "pattern": "^(?=.*[A-Za-z])(?=.*\\d)[A-Za-z\\d]{8,}$", "required": true, "description_md": "**Password Requirements:** Minimum **8 characters**, at least **one letter** & **one number**. *Tip:* Use a passphrase for better security!"},'||
343
344
'{"label": "I accept the terms and conditions", "name": "terms", "type": "checkbox", "required": true}'||
344
345
']')),
345
346
('form','Create prepended and appended inputs to make your forms easier to use.',
0 commit comments