Hello,
I am creating a form in survey123 that records plant species along different transects. It would speed up productivity a lot if the survey could default to the last species selected. Has anyone set up a survey like this before? I am trying to capture the last species collect in a text field outside the repeat, but I am getting the error below. I am attaching the survey below.
Thank you!
Are you trying to do something like a Same as last button? If so then no can't do it if the size of the value varies. I created a page with a default values setup then it asks you Use Defaults? Best I could do. I posted on this but cannot find it in the new system.
I have been asking for the lists to auto sort based on the last choice for some time now. A lot of this was talks with the 123 team or in the early adopter so I cannot link to them but this is one from 2018 https://community.esri.com/t5/arcgis-survey123-questions/how-to-random-sort-choices-in-a-question/td-p/796157.
I see you say LPI in there. I have a LPI form already as part of our program for a Fed agency. Are you Fed by chance or work with one? If so DM me and I can get you more info.
Also move your list to external choices and it will be much faster.
Edit just seeing some of this is coming in the new beta. I will be testing this soon.
Hope that helps
Hello Doug,
Thank you for your response. I am currently working for a Natural Heritage Program, and work with several federal agencies. This LPI form is based on one we developed for some BLM aim studies. We are now trying to adapt it for forestry surveys.
Thanks,
Tom
I am with the AIM team! Send me a DM and I will just give you the form. No need to reinvent it.
Hey Doug,
Any advice on setting this up if the size of the value doesn't vary?
I tried using indexed-repeat(${same_field},${same_repeat},position(..)-1) and the same thing referencing a 'count(${repeat})-1' calc field outside the repeat instead of position(..). No luck in either case, unfortunately.
Emil
Not sure what you mean about size does not vary?
indexed repeat will not work when trying to bring it into the next repeat to a field with the same name. It can only show it in a different field. This more or less makes the function useless for most uses.
The only way I have ever got same as last to go into the same field is using javascript - but my repeat is too big (at 60 fields) and blows up with a memory issue.
Is that what you meant?
That's exactly what I meant. Thank you for the clarification!
My repeat is rather long too so I'll avoid javascript for the same reason. I'll just go with a default value page for now as you suggested above.
Hi Doug,
I have a small repeat that I am trying to do this with, would you be able to share the javascript for pulling the value for the same attribute name from the previous position in the repeat?
Larry
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.