Select to view content in your preferred language

auto-populate the answer from one field to other field in Survey123

2208
3
03-05-2019 01:51 PM
DiegoLlamas
Esri Contributor

Hello, I am trying to auto-populate one the answer that the user selected  from region, municipality and district fields to a second region, municipality and district fields. in my survey I got Region, District and municipality as select one

And I want to put the same answer the user selected to a second fields. I was trying using Put option i found in some geonet link but did not worked I got an error " SyntaxError: Expected token `,' in expression: put /AEE_Luminarias/municipality"

How can I accomplish  this?

Regards,

Diego Llamas

James Tedrick

0 Kudos
3 Replies
DougBrowning
MVP Esteemed Contributor

Just do ${FieldName} in the calculation column  no put needed

ahagopian_coj
Regular Contributor

Hello!  I know this post is a bit old but I tried this and my 2nd field is always empty.  It won't populate from the data of the first field.  I put it in the calculate field the following:  ${firstfield}

I have read through everything and can't figure out what I am doing wrong.

0 Kudos
by Anonymous User
Not applicable

Hi Diego,

"put" is not a supported xlsform expression. All you need to do is reference the questions name as ${region}.

Phil.