Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
Update index.html (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbielik authored Jul 13, 2021
1 parent 055412b commit a83f3b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion braze-templates/3-braze-dashboard-survey-modal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@ <h1 class="modal__title">Survey Headline</h1>
choices.forEach(function (input) {
const customAttributeName = input.dataset.customAttributeName;
const customAttributeValue = input.dataset.customAttributeValue;
appboyBridge.getUser().setCustomUserAttribute(customAttributeName, customAttributeValue);
if (input.checked) {
appboyBridge.getUser().setCustomUserAttribute(customAttributeName, customAttributeValue);
}
});

appboyBridge.requestImmediateDataFlush();
Expand Down

0 comments on commit a83f3b3

Please sign in to comment.