You receive first element becouse your function expect one parameter, and your value 123,45,35|43,94,73|23,91,34
is split by comma so it looks for function like diferent parametrs. Use arguments property insted or pass all value as string in '' like this
<script>MyFunction('${data.question}')</script>
Sorry for my english.. still working on it