Jul 17, 2020 06:13 AM
Here is what I want to do…
We are using Airtable for a survey that can be answered anonymously. Many people may wish to do this at first and therefore not put their emails in initially.
However, later we ask if they want to receive information about services, so we would then need their email. For now, I have the description state that they need to provide us with an email if they answer yes. Is there a way to have the email field pop back up? In other words, I don’t want to have two email fields, I want it to link to the same field.
Solved! Go to Solution.
Jul 17, 2020 10:48 PM
You can use conditional fields in the form to show Email2 only if Email1 is blank and {do you want more info} is checked. In this case users could only ever enter one email–either in Email1 or Email2.
This would simplify the formula for consolidating the email address and eliminate the situations where emails don’t match.
IF(Email1, Email1, Email2)
Jul 17, 2020 06:41 AM
Hi @Brandy_Norgard - you can make a field conditionally display, so only show the email field if they have selected “yes” to the field/question “do you want to receive information”, but it can’t be a field you have used previously - a field can only be displayed once (or not at all if you choose to hide it).
Workaround for this is to create another email field, then in your table have an “email consolidation” field which shows either email1 or email 2 or either (if they are equal) or some error if they are not equal. This sounds a bit convoluted, but once it is setup you can hide the fields you don’t need to see and just show the consolidated field.
Jul 17, 2020 07:02 AM
I am not very good with formulas yet. Could you share how to do the consolidation?
Jul 17, 2020 11:46 AM
To be fair, it is not a simple formula :slightly_smiling_face:
So, with fields like this:
The consolidated field formula is:
IF(
AND(Email1, Email2, Email1 = Email2),
Email1,
IF(
AND(Email1, Email2, Email1 != Email2),
"Emails don\'t match!",
IF(
AND(Email1, NOT(Email2)),
Email1,
IF(
AND(Email2, NOT(Email1)),
Email2,
"No email entered"
)
)
)
)
There are 5 scenarios to cater for:
Jul 17, 2020 10:37 PM
What about yet another option: only use one email field, and only ask for the email if they agree to receive further information. You said the survey could be taken anonymously. Is there any problem with making it totally anonymous unless they want more info, at which point you can display the email field using a simple condition tied to the answer from the “do you want more info” question?
Jul 17, 2020 10:48 PM
You can use conditional fields in the form to show Email2 only if Email1 is blank and {do you want more info} is checked. In this case users could only ever enter one email–either in Email1 or Email2.
This would simplify the formula for consolidating the email address and eliminate the situations where emails don’t match.
IF(Email1, Email1, Email2)