How to use array value in distribution rules

Within an array object, I have benefit.value and benefit.label. Based on the benefit.label, I want to set up rules to control with benefit.value values will appear for each object in the array.

The Mockaroo UI allowed me to do this in the rules interface, however in the preview it is saying ““value”: error: Field benefit.label is not found”

What am I missing?

Here’s a link to my schema: http://mockaroo.com/3dce5700

It looks like you’ve figured it out. The solution was to use “label” not “benefits.label” since benefits.label and benefits.value have the same scope.

Yes, I did figure it out, thankfully!

It’s worth mentioning though that the tool defaults it as benefits/label when using the “add rule for all values of” feature (which is a terrific feature.) That is what got me so confused because I assumed it would default it the way it needed it.