Is there a way to autofill answers if you click a button?

224
1
10-19-2020 10:28 AM
ErinReilly1
New Contributor

Our survey asks about mailing address and property address, and would like to be able to have a question, "Is your mailing address and property address the same?"  If the answer is yes, we would like to have the mailing address information copied to the property address fields.  Is this possible?

0 Kudos
1 Reply
BarbaraWebster1
Esri Contributor

Hi Erin,

You could use an if statement in a calculation field to automatically populate the contents of the property address field if a 'property address is the same as mailing address' checkbox is selected. Here is an example of how that might look in the XLS form. 



If 'yes' is selected, the property address will be populated based on the contents of the mail address field, of not then nothing is returned and the user will fill out the mailing address field. 

There is further documentation on how the if and selected functions work at ArcGIS Survey123 Formulas.

Thanks,
-Barbara

0 Kudos