diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/FormFieldSelect.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/FormFieldSelect.svelte
index f8e4b18fe4..5527941bd5 100644
--- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/FormFieldSelect.svelte
+++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/FormFieldSelect.svelte
@@ -20,12 +20,20 @@
$: schema = getSchemaForDatasource($currentAsset, datasource, true).schema
$: options = getOptions(schema, type)
- const getOptions = (schema, fieldType) => {
+ const getOptions = (schema, type) => {
let entries = Object.entries(schema ?? {})
- if (fieldType) {
- fieldType = fieldType.split("/")[1]
- entries = entries.filter(entry => entry[1].type === fieldType)
+
+ let types = []
+ if (type === "field/options") {
+ // allow options to be used on both options and string fields
+ types = [type, "field/string"]
+ } else {
+ types = [type]
}
+
+ types = types.map(type => type.split("/")[1])
+ entries = entries.filter(entry => types.includes(entry[1].type))
+
return entries.map(entry => entry[0])
}
diff --git a/packages/client/src/components/app/forms/Field.svelte b/packages/client/src/components/app/forms/Field.svelte
index 3eb52420e5..ca607e7315 100644
--- a/packages/client/src/components/app/forms/Field.svelte
+++ b/packages/client/src/components/app/forms/Field.svelte
@@ -67,7 +67,7 @@
- {:else if fieldSchema?.type && fieldSchema?.type !== type}
+ {:else if fieldSchema?.type && fieldSchema?.type !== type && type !== "options"}