Help with Dynamic Gallery Field in Custom Widget (Based on Carousel)

Quick summary

I’m creating a custom widget based on Bricks Builder’s native carousel.php.
Everything works fine, except for the dynamic gallery field selection, which returns tokens instead of image IDs when pulling from a JetEngine gallery field.

What I’ve Tried

  • When I select images manually, everything works perfectly (image IDs and info are returned as expected).
  • When using a JetEngine dynamic gallery field, the debug output returns a string of tokens instead of image IDs.
  • I checked the original carousel.php file, but couldn’t find any reference or solution for this issue.

Debug:

DEBUG $settings[“items”]: array(2) {
[“useDynamicData”]=>
string(20) “1671041792746_a45a94b6-ed20-45cc-b426-e7713514cb0b16710417 92714_7f455e40-c343-42c0-a24b-495241f8422b1671041792044_1986 3c74-36c7-4181-9349-733b26d15a081671041855655_d3629c23-c015 -4c43-822b-7394f24dd2201671041797230_0786bef3-384e-4b1e-a1be -c684bd70931b1671041797599_750d1d90-83d7-4425-a0bf-7e7c1bc019571671041798220_20433ba5-32c5-4dad-a8bb-85b4ed06abc3167104 1785602_1fc4b7cb-0a78-47d3-bfbf-d0a4ea93847e1671041792987_8 f509a91-01d5-412f-862a-140c7e3c06a21671041795989_d02dc06c-53 a6-4d01-8287-93f295b6219c1671041795036_b772928c-5ba6-4e3e-a 8fd-e8029a384c271671041820719_e34f2e67-74d1-43bc-b2d6-bd9a67 9e1f3e1671041798390_0c426ade-7e2c-4d60-aef9-77a1731b94951671041791668_a423b337-4e21-485d-802d-fa080ebe99391671041786649 _bdfa466e-c591-472a-b2e3-9a7fd4986a191671041785650_d0a990a6 -68b2-42f9-8b55-10db288b3d6d1671041785460_47e5e7e1-69cb-4652 -a7fc-fdd8c689cf1d1671041785804_09c4426a-f827-4a16-b7d7-6c9572a155841671041785892_9471a2f9-3dba-4055-8b0c-51681ac40d10”
[“size”]=>
string(5) “large”
}

I await your help, Thanks.