Hide fields on page load if necessary

This commit is contained in:
richard-dds 2018-08-14 15:57:38 -04:00
parent d5d1265cd7
commit c639a82b82
2 changed files with 6 additions and 3 deletions

View File

@ -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
} }

View File

@ -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') }}