Evals using 'item' on layout group items
There is a problem with using evaluations on layout group items that use the item
reference. By group items, I mean elements in the layout section that don't actually refer to a field.
Such as:
{
"layout": [
{
"show": "item.name != null",
"fields": [ "field1", "field2" ]
}
]
}
This show
evaluation will throw an error because item
is null. The item
variable is populated by looking at the formValue
object and grabbing it's parent. Seeing as there is no formValue
in this instance the parent can not be found to populate the item
& formItem
variables.
Proposed Solution
We may be able to assign a fake dataBinderValue
object that has the correct parent or purhaps treat these evals a bit differently when we set up the eval watcher.