Using values stored in an array

[ad_1]

Hello and thank you for this awesome plugin.

I’m trying to use values I’ve created in a previous field:

First field (fieldname18): 

(function() {

// ... 

var resultat_A0 = [pourcentage_A0, reponse_correcte_A0, reponse_incorrecte_A0, sans_reponse_A0];

return resultat_A0;

}

)();

Second field: 
(function() {

  var result = fieldname18;
  return result; 
}
)();

The “result” of the second function only gives the first value in the array, and not the others. What am I doing wrong?

Thanks a bunch.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer