Skip to content

Beautiful Open-Source Form Builder

Update form field schemas and component labels for clarity

JhumanJ4b288d6d152d
diff --git a/api/app/Service/AI/Prompts/Form/FormFieldSchemas.php b/api/app/Service/AI/Prompts/Form/FormFieldSchemas.php
index 46b7db53f..45a1ec46f 100644
--- a/api/app/Service/AI/Prompts/Form/FormFieldSchemas.php
+++ b/api/app/Service/AI/Prompts/Form/FormFieldSchemas.php
@@ -181,7 +181,7 @@ class FormFieldSchemas
'select' => ['$ref' => '#/definitions/selectOptions'],
'without_dropdown' => [
'type' => 'boolean',
- 'description' => 'Whether to display select options as radio buttons instead of a dropdown using FlatSelectInput. Recommended for small choices (<5 options) (default: false)',
+ 'description' => 'Whether to display select options as radio buttons instead of a dropdown. Recommended for small choices (<5 options) (default: false)',
]
]
],
@@ -195,7 +195,7 @@ class FormFieldSchemas
'multi_select' => ['$ref' => '#/definitions/selectOptions'],
'without_dropdown' => [
'type' => 'boolean',
- 'description' => 'Whether to display multi-select options as checkboxes instead of a dropdown using FlatSelectInput. Recommended for small choices (<5 options) (default: false)',
+ 'description' => 'Whether to display multi-select options as checkboxes instead of a dropdown. Recommended for small choices (<5 options) (default: false)',
]
]
],
diff --git a/client/components/open/forms/fields/components/FieldOptions.vue b/client/components/open/forms/fields/components/FieldOptions.vue
index 62e0916a2..df9bb45be 100644
--- a/client/components/open/forms/fields/components/FieldOptions.vue
+++ b/client/components/open/forms/fields/components/FieldOptions.vue
@@ -351,8 +351,7 @@
v-if="!isFocusedSelectorActive"
:form="field"
name="without_dropdown"
- label="Always show all select options"
- help="Options won't be in a dropdown anymore, but will all be visible"
+ label="Use radio buttons"
@update:model-value="onFieldWithoutDropdownChange"
/>
diff --git a/client/data/blocks_types.json b/client/data/blocks_types.json
index 589167e02..7d2284536 100644
--- a/client/data/blocks_types.json
+++ b/client/data/blocks_types.json
@@ -1,7 +1,7 @@
{
"text": {
"name": "text",
- "title": "Text Input",
+ "title": "Text",
"icon": "i-heroicons-bars-3-bottom-left",
"default_block_name": "Your name",
"bg_class": "bg-blue-100",
@@ -16,7 +16,7 @@
},
"rich_text": {
"name": "rich_text",
- "title": "Rich Text Input",
+ "title": "Rich Text",
"icon": "i-heroicons-bars-3-20-solid",
"default_block_name": "Description",
"bg_class": "bg-blue-100",
@@ -30,7 +30,7 @@
},
"date": {
"name": "date",
- "title": "Date Input",
+ "title": "Date",
"icon": "i-heroicons-calendar-20-solid",
"default_block_name": "Date",
"bg_class": "bg-green-100",
@@ -41,7 +41,7 @@
},
"url": {
"name": "url",
- "title": "URL Input",
+ "title": "URL",
"icon": "i-heroicons-link-20-solid",
"default_block_name": "Link",
"bg_class": "bg-blue-100",
@@ -55,7 +55,7 @@
},
"phone_number": {
"name": "phone_number",
- "title": "Phone Input",
+ "title": "Phone",
"icon": "i-heroicons-phone-20-solid",
"default_block_name": "Phone Number",
"bg_class": "bg-blue-100",
@@ -68,7 +68,7 @@
},
"email": {
"name": "email",
- "title": "Email Input",
+ "title": "Email",
"icon": "i-heroicons-at-symbol-20-solid",
"default_block_name": "Email",
"bg_class": "bg-blue-100",
@@ -82,7 +82,7 @@
},
"checkbox": {
"name": "checkbox",
- "title": "Checkbox Input",
+ "title": "Checkbox",
"icon": "i-heroicons-check-circle",
"default_block_name": "Checkbox",
"bg_class": "bg-red-100",
@@ -93,7 +93,7 @@
},
"select": {
"name": "select",
- "title": "Select Input",
+ "title": "Select",
"icon": "i-heroicons-chevron-up-down-20-solid",
"default_block_name": "Select",
"bg_class": "bg-red-100",
@@ -110,9 +110,29 @@
}
}
},
+ "radio": {
+ "name": "radio",
+ "title": "Radio Button",
+ "icon": "i-material-symbols-radio-button-checked-outline",
+ "default_block_name": "Radio",
+ "bg_class": "bg-red-100",
+ "text_class": "text-red-900",
+ "available_in": ["classic", "focused"],
+ "is_input": true,
+ "default_values": {
+ "select": {
+ "options": [
+ { "name": "Option 1", "id": "Option 1" },
+ { "name": "Option 2", "id": "Option 2" }
+ ]
+ },
+ "without_dropdown": true
+ },
+ "actual_input": "select"
+ },
"multi_select": {
"name": "multi_select",
- "title": "Multi-select Input",
+ "title": "Multi-select",
"icon": "i-heroicons-chevron-up-down-20-solid",
"default_block_name": "Multi Select",
"bg_class": "bg-red-100",
@@ -131,7 +151,7 @@
},
"matrix": {
"name": "matrix",
- "title": "Matrix Input",
+ "title": "Matrix",
"icon": "i-heroicons-table-cells-20-solid",
"default_block_name": "Matrix",
"bg_class": "bg-red-100",
@@ -148,7 +168,7 @@
},
"number": {
"name": "number",
- "title": "Number Input",
+ "title": "Number",
"icon": "i-heroicons-hashtag-20-solid",
"default_block_name": "Number",
"bg_class": "bg-purple-100",
@@ -161,7 +181,7 @@
},
"rating": {
"name": "rating",
- "title": "Rating Input",
+ "title": "Rating",
"icon": "i-heroicons-star",
"default_block_name": "Rating",
"bg_class": "bg-purple-100",
@@ -174,7 +194,7 @@
},
"scale": {
"name": "scale",
- "title": "Scale Input",
+ "title": "Scale",
"icon": "i-heroicons-scale-20-solid",
"default_block_name": "Scale",
"bg_class": "bg-purple-100",
@@ -189,7 +209,7 @@
},
"slider": {
"name": "slider",
- "title": "Slider Input",
+ "title": "Slider",
"icon": "i-heroicons-adjustments-horizontal",
"default_block_name": "Slider",
"bg_class": "bg-purple-100",
@@ -204,7 +224,7 @@
},
"files": {
"name": "files",
- "title": "File Input",
+ "title": "File",
"icon": "i-heroicons-paper-clip",
"default_block_name": "Files",
"bg_class": "bg-pink-100",
@@ -215,7 +235,7 @@
},
"signature": {
"name": "signature",
- "title": "Signature Input",
+ "title": "Signature",
"icon": "i-heroicons-pencil-square-20-solid",
"default_block_name": "Signature",
"bg_class": "bg-pink-100",
@@ -253,7 +273,7 @@
},
"password": {
"name": "password",
- "title": "Password Input",
+ "title": "Password",
"icon": "i-heroicons-key",
"default_block_name": "Password",
"bg_class": "bg-blue-100",