form ยท console.warn
lattice-form: getItem(name).get("{prop}") is...
Printed by form, prefixed [lattice], since 1.104.0.
Warnings reference › form.item.get.unknown:*
- Identifier
form.item.get.unknown:*- Raised by
- form
- Since
- 1.104.0
What happened
getItem(name).get(prop) reads back the effective value of a prop set() accepts. A prop the item does not carry (misspelled, or simply not one of its own) has no effective value to report, so undefined is returned rather than guessing.
The fix
Check the prop name against the props set() on this item documents as live.
The smallest fix
form.getItem('city').get('placeholder');
Reference
Covered in full at the API reference.