validate alphanumeric values
This commit is contained in:
parent
67b905dc4c
commit
61aeb06e0a
1 changed files with 6 additions and 0 deletions
|
|
@ -8,6 +8,7 @@
|
||||||
cornerStyle="rounded"
|
cornerStyle="rounded"
|
||||||
:displayQuestionText="false"
|
:displayQuestionText="false"
|
||||||
isRequired
|
isRequired
|
||||||
|
@input="validateAlphanumeric"
|
||||||
validationRules="promo-required" />
|
validationRules="promo-required" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -38,6 +39,11 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
methods: {
|
||||||
|
validateAlphanumeric() {
|
||||||
|
this.value = this.value.replace(/[^a-zA-Z0-9]/g, "");
|
||||||
|
},
|
||||||
|
},
|
||||||
components: {
|
components: {
|
||||||
textboxQuestion,
|
textboxQuestion,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue