designer ยท console.warn
designer: there is no visible field {field} ...
Printed by designer, prefixed [lattice], since 1.89.0.
Warnings reference › designer:drop-field:*:*
- Identifier
designer:drop-field:*:*- Raised by
- designer
- Since
- 1.89.0
What happened
The dropField command adds a widget for a field the data panel shows. The source has no such field, or the guardrails hide it, so nothing was added and the command returned false.
The fix
Drop a field the data panel lists, or allow it in the guardrails.
The smallest fix
designer.commands.run(dropField, { sourceId: sales, fieldId: amount });
Reference
Covered in full at the API reference.