Select to view content in your preferred language

Se puede generar botones (links) dentro de una encuesta survey123 para que me redirija a otra encuesta dentro de la app de survey?

321
1
11-28-2024 10:17 AM
AbigailGomez99
New Contributor

Tengo que hacer el levantamiento de información en campo de manera offline y usando la app de survey 123, lo que quiero levantar son predios, lotes y cultivos de fincas de 3 países de latinoamérica.

En survey 123 connect realicé 3 encuestas:

1. Encuesta de predios (principal, contiene el ID_predio)

2. Encuesta de lotes (relacionada, contiene el ID_lote y va a conectar con el ID_predio)

3. Encuesta de cultivos (relacionada, contiene el ID_cultivos y va a conectar con el ID_lote)

Ahora quiero saber si es posible el siguiente flujo de trabajo:

Lleno desde la app de survey mi 1ra encuesta de Predios, y dentro de esta encuesta exista un botón que me redirija a mi 2da encuesta de Lotes y esta encuesta se pueda abrir en la app, e igualmente dentro de esta 2da encuesta exista un botón que me redirija a mi 3ra encuesta de Cultivos.

He investigado y esta es una de las soluciones https://support.esri.com/es-es/knowledge-base/problem-a-hyperlink-in-arcgis-survey123-opens-the-webs... que da el soporte de Esri, pero es para poder enlazar un link al botón, si funciona pero el problema es que al momento de querer abrir la siguiente encuesta me lleva al sitio web de survey 123 de la encuesta, pero al no tener internet durante mi levantamiento se vuelve una opción descartada.

También intenté generar un link no con "https:.." si no con el Id de la encuesta que te da en el Arcgis Online concat('arcgis-survey123://?itemID=e4c6e87ec6174b5ba049a7a22f3c9c86&field:ID_PREDIO=', ${id_predio})

pero al momento de colocarlo, no me redijire a la encuesta

No sé si esto que les comento es posible de realizar. 

0 Kudos
1 Reply
TylerGraham2
Frequent Contributor

I'm an English only speaker and relied on Google Translate to read what you wrote, so apologies in advance if something gets lost in translation.

It seems like you're having problems getting a new survey to open with some prepopulated data. I looked at your screenshot and it looks like there is a name issue that could be causing problems too.  The field name is "id_predio_" but in the calculation column you call it as "id_predio." That will cause issues passing data along because it is looking for a different field.  

I also used your screenshot as a starting point and created 2 test surveys in Survey123 Connect. One as the survey to collect the ID fields, and the second survey to pass one of those ID fields to.  

The concat() you used will create a URL, but it is not a clickable link. You need to do some more to get it to work in the survey.  I added another calculate type row and used concat() again to format the URL into a clickable html link. I then added a note type row and for the label column I called the calculate row I used to create the html link. I was able to pass a value from the ID survey onto the 2nd survey. I'm including a screenshot showing how the link appears with it successfully passed to the 2nd survey. The other screenshot shows how I'd layout your xls sheet to pass the ID del Predio field data to a new survey.  Repeat it for your other ID fields and it should get you going.  You might consider adding a relevant filter to the note so that they don't appear until the ID field has been filled out, otherwise you don't have any data to pass to the other survey.  

Screenshot 2024-12-04 102521.png

Screenshot 2024-12-04 102245.png

0 Kudos