AnsweredAssumed Answered

How do I get a JSON name and value from an array?

Question asked by csergent08 Champion on Jun 16, 2015
Latest reply on Jun 17, 2015 by csergent08

Robert Scheitlin, GISP helped me by providing this example to return an array based on value: JS Bin - Collaborative JavaScript Debugging

 

But how do I get each name and value in my array?

 

In this example a supportId of 691 is selected. I have a form that I want to update only one set of values at at time, so how do get just the name;

SIGNID  and the value of 1169 so that I may set SIGNID's value to 1169 on the form. I basically want to update my form with all the values in the first element of the array, but I am not sure how to select JSON items. The following items are in my array and I will want to replace each as the user click previous or next.

 

StreetSignsForm.png

Outcomes