diff --git a/core/inputs/input.ts b/core/inputs/input.ts index 5195e5d68f2..f7406451f45 100644 --- a/core/inputs/input.ts +++ b/core/inputs/input.ts @@ -324,9 +324,17 @@ export class Input { if (!fieldRowLabel) { const inputs = this.getSourceBlock().inputList; const index = inputs.indexOf(this); - if (index > 0) { - return inputs[index - 1].getFieldRowLabel(); - } + const precedingInputs = inputs.slice(0, index); + return precedingInputs + .flatMap((input) => { + const fields = input.fieldRow.map((field) => { + if (!field.isVisible()) return undefined; + return [field.getText() ?? field.getValue()]; + }); + return fields; + }) + .filter(Boolean) + .join(' '); } return fieldRowLabel; }