Pre Populate Email and Phone

This bit of code is used to pre populate a respondents Email address and Phone Number into a single “Other” option

Parts in Bold you will need to change to make it work for you and your data.

var email = f(‘Email‘).get();
var updateemail = f(‘q3_1_other‘);
var phone = f(‘phone‘).get();
var updatephone = f(‘q3_2_other‘)
if(!updateemail.toBoolean())
{
  updateemail.set(email);
}
if(!updatephone.toBoolean())
{
  updatephone.set(phone);
}
Enjoy!