Prepopulate repeat group with the first values

07-19-2022 09:13 AM
New Contributor II

Hello, could some one help me??

I would like to prepopulate all of questions of a repeat group. I found a way to prepopulate a question with the follow function: 


function sameaslast(cultivo, position, sistema_producao) {

if (position > 1){

return cultivo[position - 2][sistema_producao];



pulldata("@javascript", "functions.js", "sameaslast", ${cultivo}, number(${position}), "sistema_producao")

But I have a lot of questions as a repeat child, so using this function above I must do it for each question. Do you know some function to aplly the prepopulation to all of question on one time?






0 Kudos
0 Replies