Select to view content in your preferred language

Autopopulate from previous entered survey

265
2
03-27-2024 08:26 AM
enlargent
New Contributor

Hello,

I'm creating a survey in Connect to use as a vehicle mileage log.   Under Trip Details, the Date/Time are automatically entered.  Then I have mandatory fields of Beginning Odometer Reading and Ending Odometer Reading, along with other information.  I want the Beginning Reading to be automatically entered based on the previous submitted survey's Ending Reading.  Is that possible? 

2 Replies
ZacharySutherby
Esri Regular Contributor

Hello @enlargent

You can use pulldata("@layer") to pull the previous submitted survey and populate the Beginning Reading with the value from the Ending Reading. We have a sample in Survey123 Connect called Query a Feature Layer that will help with understanding the syntax of the pulldata("@layer") function. Please also see our Esri Community blog and documentation for more information. 

Thank you,
Zach
0 Kudos
enlargent
New Contributor

Thank you! I'll give that a try! 

0 Kudos