Hide fields on page load if necessary
This commit is contained in:
@@ -17,8 +17,12 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
data: function () {
|
data: function () {
|
||||||
|
const {
|
||||||
|
am_poc = 'no'
|
||||||
|
} = this.initialData
|
||||||
|
|
||||||
return {
|
return {
|
||||||
am_poc: "no"
|
am_poc
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -35,7 +39,6 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
handleFieldChange: function (event) {
|
handleFieldChange: function (event) {
|
||||||
const { value, name } = event
|
const { value, name } = event
|
||||||
console.log(value, name)
|
|
||||||
if (typeof this[name] !== undefined) {
|
if (typeof this[name] !== undefined) {
|
||||||
this[name] = value
|
this[name] = value
|
||||||
}
|
}
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
{{ OptionsInput(f.am_poc) }}
|
{{ OptionsInput(f.am_poc) }}
|
||||||
|
|
||||||
<template v-if="!amPOC">
|
<template v-if="!amPOC" v-cloak>
|
||||||
{{ TextInput(f.fname_poc,placeholder='First Name') }}
|
{{ TextInput(f.fname_poc,placeholder='First Name') }}
|
||||||
{{ TextInput(f.lname_poc,placeholder='Last Name') }}
|
{{ TextInput(f.lname_poc,placeholder='Last Name') }}
|
||||||
{{ TextInput(f.email_poc,placeholder='jane@mail.mil', validation='email') }}
|
{{ TextInput(f.email_poc,placeholder='jane@mail.mil', validation='email') }}
|
||||||
|
Reference in New Issue
Block a user