Just wondering about the MIGX Grid area as it displays in the Manager in the Template Variables tab - is it possible to call different dataIndex sources for the same grid column, depending which one is not empty?
Say, the caption is ‘Image’ but sometimes the image might be in ‘cell_1_image’ field, sometimes in ‘cell_2_image’
So rather than
“dataIndex”: “IF cell_1_image is not empty, then ‘cell_1_image’, ELSE if cell_2_image is not empty, then ‘cell_2_image’”
…kind of thing, a bit like a Modx output modifier or some such. We have different formnames all using the same grid, but not all form names have the data in the same format. We’re trying to get one grid display to suit all forms.
Modx 2.8.1 Migx 2.11.0