Use hidden input to hold value
This commit is contained in:
parent
44dfbbf9d0
commit
9d98b98b4e
@ -26,6 +26,8 @@
|
|||||||
|
|
||||||
<span v-show='showError'>{{ Icon('alert',classes="icon-validation") }}</span>
|
<span v-show='showError'>{{ Icon('alert',classes="icon-validation") }}</span>
|
||||||
|
|
||||||
|
<input type='hidden' name='{{ field.name }}' v-bind:value='value'/>
|
||||||
|
|
||||||
<template v-if='showError'>
|
<template v-if='showError'>
|
||||||
<span v-if='initialErrors' v-for='error in initialErrors' class='usa-input__message' v-html='error'></span>
|
<span v-if='initialErrors' v-for='error in initialErrors' class='usa-input__message' v-html='error'></span>
|
||||||
</template>
|
</template>
|
||||||
@ -37,7 +39,6 @@
|
|||||||
<template v-if='choice[0] !== ""'>
|
<template v-if='choice[0] !== ""'>
|
||||||
<input
|
<input
|
||||||
type='radio'
|
type='radio'
|
||||||
name='{{ field.name }}'
|
|
||||||
v-bind:id="'{{ field.name }}_' + choice[0]"
|
v-bind:id="'{{ field.name }}_' + choice[0]"
|
||||||
v-bind:value='choice[0]'
|
v-bind:value='choice[0]'
|
||||||
v-bind:checked='value === choice[0]'
|
v-bind:checked='value === choice[0]'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user