Select to view content in your preferred language

Auto create new fields while filling out survey?

598
4
Jump to solution
03-13-2024 08:27 PM
CamTurney
Emerging Contributor

I am creating a survey 123 for a field data sheet including species found. There will be instances where only 1 species will be found, and others, up to 15. Instead of manually copying the same text field for species name, is there a way to set it up where there is only one field, and if you fill out that one field, a second field automatically generates? Thanks in advance for checking this out!

0 Kudos
1 Solution

Accepted Solutions
abureaux
MVP Frequent Contributor

First step is to know what you are using for development. Web App or Connect?

I would recommend Connect, and I'd also recommend installing it from the Microsoft Store (so it auto-updates). I tend to avoid the Web App personally.

Assuming you are using Connect, it's as simple as creating a repeat, adding your content to the repeat, and publishing!

Here is a quick Example. With these three lines, I can effectively add unlimited species to a survey.

abureaux_0-1710429480504.png

abureaux_1-1710429533751.png

A word of warning so you aren't surprised: adding a repeat to a survey that has already been published will result in the database being erased. This is normal behaviour. Other tasks that result in this are changes to bind::esri:fieldLength and type (e.g., changing Integer to Text).

abureaux_2-1710429613722.png

 

View solution in original post

0 Kudos
4 Replies
abureaux
MVP Frequent Contributor

Sounds like you need to use a Repeat. Have you looked into that yet, and if so is there a reason why you opted to not use it?

0 Kudos
CamTurney
Emerging Contributor

I did not know about this! Could you fill me in on how it works or point me in a direction on how to use it?

0 Kudos
abureaux
MVP Frequent Contributor

First step is to know what you are using for development. Web App or Connect?

I would recommend Connect, and I'd also recommend installing it from the Microsoft Store (so it auto-updates). I tend to avoid the Web App personally.

Assuming you are using Connect, it's as simple as creating a repeat, adding your content to the repeat, and publishing!

Here is a quick Example. With these three lines, I can effectively add unlimited species to a survey.

abureaux_0-1710429480504.png

abureaux_1-1710429533751.png

A word of warning so you aren't surprised: adding a repeat to a survey that has already been published will result in the database being erased. This is normal behaviour. Other tasks that result in this are changes to bind::esri:fieldLength and type (e.g., changing Integer to Text).

abureaux_2-1710429613722.png

 

0 Kudos
CamTurney
Emerging Contributor

Thanks!! This solved my problem and worked great!

0 Kudos