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
SELECT'username'AS name, 'text'AS type, 'Enter your username'AS placeholder,
8
+
'**Text** - Default single-line text input. Use for short text like names, usernames, titles. Supports `minlength`, `maxlength`, `pattern` for validation.'AS description_md;
'**Password** - Masked text input that hides characters. Use for passwords and sensitive data. Combine with `pattern` attribute for password strength requirements.'AS description_md;
'**Search** - Search input field, may display a clear button. Use for search boxes. Mobile browsers may show optimized keyboard.'AS description_md;
15
+
16
+
SELECT'bio'AS name, 'textarea'AS type, 5AS rows, 'Tell us about yourself...'AS placeholder,
17
+
'**Textarea** (SQLPage custom) - Multi-line text input. Use for long text like comments, descriptions, articles. Set `rows` to control initial height.'AS description_md;
'**Number with decimals** - Set `step="0.01"` for currency. Use `prefix`/`suffix` for units. Great for prices, measurements, percentages.'AS description_md;
'**Range** - Slider control for selecting a value. Use for volume, brightness, ratings, or any bounded numeric value where precision isn''t critical.'AS description_md;
29
+
30
+
SELECT'header'AS type, 'Date and Time Types'AS label;
31
+
32
+
SELECT'birth_date'AS name, 'date'AS type,
33
+
'**Date** - Date picker (year, month, day). Use for birthdays, deadlines, event dates. Most browsers show a calendar widget. Supports `min` and `max` for date ranges.'AS description_md;
34
+
35
+
SELECT'appointment_time'AS name, 'time'AS type,
36
+
'**Time** - Time picker (hours and minutes). Use for appointment times, opening hours, alarms. Shows time selector in supported browsers.'AS description_md;
'**Datetime-local** - Date and time picker without timezone. Use for scheduling events, booking appointments, logging timestamps in local time.'AS description_md;
40
+
41
+
SELECT'birth_month'AS name, 'month'AS type,
42
+
'**Month** - Month and year picker. Use for credit card expiration dates, monthly reports, subscription periods.'AS description_md;
43
+
44
+
SELECT'vacation_week'AS name, 'week'AS type,
45
+
'**Week** - Week and year picker. Use for week-based scheduling, timesheet entry, weekly reports.'AS description_md;
46
+
47
+
SELECT'header'AS type, 'Contact Information Types'AS label;
'**Email** - Email address input with built-in validation. Use for email fields. Browser validates format automatically. Mobile shows @ key on keyboard.'AS description_md;
'**Tel** - Telephone number input. Use for phone numbers. Mobile browsers show numeric keyboard with phone symbols. No automatic validation - use `pattern` if needed.'AS description_md;
'**URL** - URL input with validation. Use for website addresses, links. Browser validates URL format. Mobile may show .com key on keyboard.'AS description_md;
'**Select** (SQLPage custom) - Dropdown menu. Use for single choice from many options. Add `multiple` for multi-select. Use `searchable` for long lists. Set `dropdown` for enhanced UI.'AS description_md;
'**Radio** - Radio button for mutually exclusive choices. Create multiple rows with same `name` for a radio group. One option can be selected. Use for 2-5 options.'AS description_md;
'**Checkbox** - Checkbox for multiple selections. Each checkbox is independent. Use for yes/no questions or multiple selections from a list.'AS description_md;
73
+
74
+
SELECT'terms'AS name, 'checkbox'AS type, TRUE AS required, 'I accept the terms and conditions'AS label,
75
+
'**Checkbox (required)** - Use `required` to make acceptance mandatory. Common for terms of service, privacy policies, consent forms.'AS description_md;
'**Switch** (SQLPage custom) - Toggle switch, styled checkbox alternative. Use for on/off settings, feature toggles, preferences. More intuitive than checkboxes for boolean settings.'AS description_md;
79
+
80
+
SELECT'header'AS type, 'File and Media Types'AS label;
'**File** - File upload control. Use `accept` to limit file types (image/\*, .pdf, .doc). Use `multiple` to allow multiple files. Automatically sets form enctype to multipart/form-data.'AS description_md;
'**Color** - Color picker. Use for theme customization, design settings, highlighting preferences. Returns hex color code (#RRGGBB).'AS description_md;
'**Hidden** - Hidden input, not visible to users. Use for IDs, tokens, state information that needs to be submitted but not displayed or edited.'AS description_md;
- **Web SQL**: Integrate forms into web applications.
235
+
- [A multi-step form](https://github.com/sqlpage/SQLPage/tree/main/examples/forms-with-multiple-steps), guiding the user through a process without overwhelming them with a large form.
236
+
- [File upload form](https://github.com/sqlpage/SQLPage/tree/main/examples/image%20gallery%20with%20user%20uploads), letting users upload images to a gallery.
237
+
- [Rich text editor](https://github.com/sqlpage/SQLPage/tree/main/examples/rich-text-editor), letting users write text with bold, italics, links, images, etc.
238
+
- [Master-detail form](https://github.com/sqlpage/SQLPage/tree/main/examples/master-detail-forms), to edit a list of structured items.
239
+
- [Form with a variable number of fields](https://github.com/sqlpage/SQLPage/tree/main/examples/forms%20with%20a%20variable%20number%20of%20fields), when the fields are not known in advance.
240
+
- [Demo of all input types](/examples/form), showing all the input types supported by SQLPage.
0 commit comments