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 VariableThe data for the profile field is saved as a custom variable in the survey response.
This feature is available with the following license :