Skip to content

Commit 973879d

Browse files
n0rdlichtyvess
authored andcommitted
Merged in typeform (pull request #1)
adds extra fields when calling typeform
2 parents 92885f2 + 08dfd7c commit 973879d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

vue/src/views/Home.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,13 @@ export default {
117117
118118
submitMunicipality() {
119119
if (this.select.node.bfsNumber) {
120-
this.$router.push({ name: 'signup', params: { bfsnumber: this.select.node.bfsNumber } });
120+
this.$router.push({
121+
name: 'signup',
122+
params: {
123+
bfsnumber: this.select.node.bfsNumber,
124+
bfsname: this.select.node.fullname
125+
}
126+
});
121127
}
122128
}
123129
},

vue/src/views/Signup.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export default {
2626
2727
computed: {
2828
dataurl() {
29-
if (this.$route.params.bfsnumber) {
30-
return `//cividi.typeform.com/to/vjVoPr?bfs_gmdno=${this.$route.params.bfsnumber}`;
29+
if (this.$route.params.bfsnumber && this.$route.params.bfsname && this.$route.params.lang) {
30+
return `//cividi.typeform.com/to/vjVoPr?bfs_gmdno=${this.$route.params.bfsnumber}&bfs_gmdname=${this.$route.params.bfsname}&gmdscn_lang=${this.$route.params.lang}`;
3131
}
3232
return '//cividi.typeform.com/to/vjVoPr';
3333
}

0 commit comments

Comments
 (0)