@lindakwoo can you confirm there's currently a bug where a Repeatable (List) in a modal window will fail to return the dataset's pk value (it will be present but "undefined") even if:
- the List's "Enable instance values" attribute is enabled
- the input data has the value
- the List's "Primary Key" attribute contains the right name for the pk attribute
- the List's "Primary key name override" attribute is also set (to force the pk to be re-output to the same name it arrived as)
I just want to make sure I'm not working around something unnecessarily. (I'll try adding a hidden control to "hold" the value so it can be returned to me, as I'm not prepared to convert this away from being a modal.)
Data arriving from query:
[
{
"picked": true,
"context_id": 1,
"position_doc": null,
"context_label": "...",
"criterion_ids": [
4,
6,
7
],
"context_framework_code": "...",
"context_line_of_business_id": 67
},
{
"picked": false,
"context_id": 2,
"position_doc": null,
"context_label": "...",
"criterion_ids": null,
"context_framework_code": "...",
"context_line_of_business_id": 383
}
]
Data in .instanceValues:
[
{
"context_id": undefined, -- should be 1
"position_doc": 0,
"criterion_ids": [
4,
6,
7
],
"picked": true
},
{
"context_id": undefined, -- should be 2
"position_doc": 0,
"criterion_ids": [],
"picked": false
}
]
(I only have editable fields with a "Form data key" for picked
, position_doc
and criterion_ids
)
(I did get it working with a hidden input field to carry the PK through, btw.)