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"
|
||||
:displayQuestionText="false"
|
||||
isRequired
|
||||
@input="validateAlphanumeric"
|
||||
validationRules="promo-required" />
|
||||
</template>
|
||||
|
||||
|
|
@ -38,6 +39,11 @@ export default {
|
|||
},
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
validateAlphanumeric() {
|
||||
this.value = this.value.replace(/[^a-zA-Z0-9]/g, "");
|
||||
},
|
||||
},
|
||||
components: {
|
||||
textboxQuestion,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue