gabriele vidali
Posts: 0
Joined: Tue May 26, 2015 5:22 am

How to access multiple values from JS editor

Image

I have multiple values linked to a single field as shown in the image and want to show both.
I tried:
item = items.array[name] + items.array[quantity];
return item;

I also tried:
item = name + quantity;
return item;

The tried:
item = value[0] + value[1]
return item;

Or:
item = value[name] + value[quantity]
return item

but I obtain the quantity only.
How do I get to name and quantity values in the editor ?

thanks

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to access multiple values from JS editor

Hello Gabriele,

Please JS to the mapping items_array-mobilelistitem_3

here you get access to all values of items_array via variable "value":

E.g.:
var name = value.name;
var quantity = value.quantity;

gabriele vidali
Posts: 0
Joined: Tue May 26, 2015 5:22 am

How to access multiple values from JS editor

Thanks.
Visual explanation was here http://i.imgur.com/KvRyJov.png

Return to “Issues”