You can set Survey Custom Variable update when adding/editing a profile field.
Go to: Communities >> Profile >> Global Community Member Profile
Click on Add New Profile Field
Select the custom variables from the drop down next to Survey Custom Variable
The data for the profile field is saved as a custom variable in the survey response.