Hi,
I have a form with an array, then in the first array I have a second array... like this :
After user have completed the arrays Commerces (values F_departement and F_commune and F_commerce...) and Démarches (values F_demarche and F_presence) I want to see in the array in "Formulaire" not only F_departement and F_commune and F_commerce but F_demarche and F_presence too.
Under Notes there was @Implode / @Explode fonction I have used to see multiples values in on field.
Is there is something simple with Volt to do the same ?
Thank you in advance,
Michel
The View Responses/View Data page cannot show data from table items. If you wanted to show this content in a form page you could use javascript to pull the table values and copy them into a text or html widget.
The following page has a printTable() function and convertTableToObj(), either of these could be used to render the table contents in your form:
https://hclwiki.atlassian.net/wiki/spaces/HL/pages/461735/JavaScript+Functions+for+Tables
I have try more simple with .join ... but it does not work :
var x = [[0,1],[5,6],[2,3]] ;
var s = x.join(',');
alert(s);
return
0,1,5,6,2,3
work well...
but when I try :
var t = BOA.getValue();
var s = t.join(',');
alert(s);
it's return (in this example my response array have two rows) :
[object Object],[object Object]
Normal... But Object.values() return [object Object] too... and JSON.stringify() is not supported ?