Survey123 calculation ?

110
2
Jump to solution
08-09-2022 01:56 PM
Alena
by
New Contributor III

I have a survey setup to:

1. ask for a address

2. ask if the address is the same as the mailing address - which is 'yes' or 'no'

If 'no' then a 3rd question opens asking for the mailing address.

What if I wanted it to auto add the address to the mailing address if they answered 'yes' but be blank if they answered 'no'?

I added the ${address} to the mailing address calculation and it copies it, but it also does it if they answer 'no'. Can it automatically be made blank if they answer 'no'?

I used the body::esri:visible column to only display the question if they answer no. That seemed to work better than in relevant.

Thanks for any suggestions!

 

0 Kudos
1 Solution

Accepted Solutions
ChrisRoberts2
Occasional Contributor III

A simple if else statement should  work in the Mailing Address calculation column ie if(${IsMailingAddess} ='Yes', ${address}, "")

View solution in original post

2 Replies
ChrisRoberts2
Occasional Contributor III

A simple if else statement should  work in the Mailing Address calculation column ie if(${IsMailingAddess} ='Yes', ${address}, "")

Alena
by
New Contributor III

Thank you! I though it would be an if statement. Everything I tried was incorrect.

0 Kudos