diff --git a/web/app/components/workflow/nodes/loop/components/loop-variables/form-item.tsx b/web/app/components/workflow/nodes/loop/components/loop-variables/form-item.tsx
index 4a05e457b3..6a66c242ba 100644
--- a/web/app/components/workflow/nodes/loop/components/loop-variables/form-item.tsx
+++ b/web/app/components/workflow/nodes/loop/components/loop-variables/form-item.tsx
@@ -18,33 +18,15 @@ import {
ValueType,
VarType,
} from '@/app/components/workflow/types'
+import BoolValue from '@/app/components/workflow/panel/chat-variable-panel/components/bool-value'
-const objectPlaceholder = `# example
-# {
-# "name": "ray",
-# "age": 20
-# }`
-const arrayStringPlaceholder = `# example
-# [
-# "value1",
-# "value2"
-# ]`
-const arrayNumberPlaceholder = `# example
-# [
-# 100,
-# 200
-# ]`
-const arrayObjectPlaceholder = `# example
-# [
-# {
-# "name": "ray",
-# "age": 20
-# },
-# {
-# "name": "lily",
-# "age": 18
-# }
-# ]`
+import {
+ arrayBoolPlaceholder,
+ arrayNumberPlaceholder,
+ arrayObjectPlaceholder,
+ arrayStringPlaceholder,
+ objectPlaceholder,
+} from '@/app/components/workflow/panel/chat-variable-panel/utils'
type FormItemProps = {
nodeId: string
@@ -83,6 +65,8 @@ const FormItem = ({
return arrayNumberPlaceholder
if (var_type === VarType.arrayObject)
return arrayObjectPlaceholder
+ if (var_type === VarType.arrayBoolean)
+ return arrayBoolPlaceholder
return objectPlaceholder
}, [var_type])
@@ -120,9 +104,17 @@ const FormItem = ({
/>
)
}
+ {
+ value_type === ValueType.constant && var_type === VarType.boolean && (
+