From 30a534037816d241668c1a8a99c8ed6309a1556c Mon Sep 17 00:00:00 2001 From: Beatriz Mendes Date: Thu, 18 Aug 2022 14:37:32 +0100 Subject: [PATCH] feat(editor): improve dynamic input field description Closes #303 --- .../entries/InputKeyValuesSourceEntry.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/form-js-editor/src/features/properties-panel/entries/InputKeyValuesSourceEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/InputKeyValuesSourceEntry.js index 10cca0ff0..38421339a 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/InputKeyValuesSourceEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/InputKeyValuesSourceEntry.js @@ -11,12 +11,20 @@ export default function InputKeyValuesSourceEntry(props) { id } = props; + const schema = ' [{ \n "label": "dollar", \n "value": "$" \n }] '; + + const description =
+ Define which input property to populate the values from. +

The input property must follow this schema: +
{schema}
+
; + return [ { id: id + '-key', component: InputValuesKey, label: 'Input values key', - description: 'Define which input property to populate the values from', + description, isEdited: isTextFieldEntryEdited, editField, field,