Hi,
If my schema is something like:
name: ‘a’,
details: {
detail1: ‘b’,
detail2: ‘c’,
}
and i want “details.detail2” to take the value from “name”, how can I do that?
thanks!
Hi,
If my schema is something like:
name: ‘a’,
details: {
detail1: ‘b’,
detail2: ‘c’,
}
and i want “details.detail2” to take the value from “name”, how can I do that?
thanks!
Fields from the parent scope are available in the child scope, so you can use a formula field with the value of “name”.
I tried that but it didn’t work… it says the “name” is not defined and when I uses fields inside the details (such as detail1) it finds them without writing the “details.” prefix.
Here’s a working example:
Thanks but you didn’t use JSON array there. That’s my problem
I’ve updated the example to use JSON array. The same should work for both objects and arrays: http://www.mockaroo.com/9d551620