-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67a2402
commit fbe6b6a
Showing
3 changed files
with
24 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
<script async type="text/javascript" src="https://tally.so/widgets/embed.js"></script> | ||
<script type="text/javascript"> | ||
window.TallyConfig = { | ||
"formId": "{{ nps_form_id }}", | ||
"popup": { | ||
"width": 400, | ||
"emoji": { | ||
"text": "👋", | ||
"animation": "wave" | ||
{% if nps_form_id %} | ||
<script async type="text/javascript" src="https://tally.so/widgets/embed.js"></script> | ||
<script type="text/javascript"> | ||
window.TallyConfig = { | ||
"formId": "{{ nps_form_id }}", | ||
"popup": { | ||
"width": 400, | ||
"emoji": { | ||
"text": "👋", | ||
"animation": "wave" | ||
}, | ||
"open": { | ||
"trigger": "time", | ||
"ms": 2000 | ||
}, | ||
// "showOnce": true, // show the popup only once to the same visitor (even if he didn't submit) | ||
"doNotShowAfterSubmit": true, // after the visitor submits the form, don't show the popup again | ||
"autoClose": 0, // automatically hide the popup after the form is submitted. optionally set a delay in seconds. | ||
"hideTitle": true, | ||
"layout": "modal" // display in the center instead of bottom right corner | ||
}, | ||
"open": { | ||
"trigger": "time", | ||
"ms": 2000 | ||
}, | ||
// "showOnce": true, // show the popup only once to the same visitor (even if he didn't submit) | ||
"doNotShowAfterSubmit": true, // after the visitor submits the form, don't show the popup again | ||
"autoClose": 0, // automatically hide the popup after the form is submitted. optionally set a delay in seconds. | ||
"hideTitle": true, | ||
"layout": "modal" // display in the center instead of bottom right corner | ||
}, | ||
}; | ||
</script> | ||
}; | ||
</script> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters