|
|
|
@ -314,7 +314,7 @@ export default {
|
|
|
|
const field = {
|
|
|
|
const field = {
|
|
|
|
name: '',
|
|
|
|
name: '',
|
|
|
|
uuid: v4(),
|
|
|
|
uuid: v4(),
|
|
|
|
required: true,
|
|
|
|
required: type !== 'checkbox',
|
|
|
|
type,
|
|
|
|
type,
|
|
|
|
submitter_uuid: this.selectedSubmitter.uuid,
|
|
|
|
submitter_uuid: this.selectedSubmitter.uuid,
|
|
|
|
areas: [area]
|
|
|
|
areas: [area]
|
|
|
|
@ -333,7 +333,7 @@ export default {
|
|
|
|
type: this.dragFieldType,
|
|
|
|
type: this.dragFieldType,
|
|
|
|
uuid: v4(),
|
|
|
|
uuid: v4(),
|
|
|
|
submitter_uuid: this.selectedSubmitter.uuid,
|
|
|
|
submitter_uuid: this.selectedSubmitter.uuid,
|
|
|
|
required: true
|
|
|
|
required: this.dragFieldType !== 'checkbox'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (['select', 'multiple', 'radio'].includes(this.dragFieldType)) {
|
|
|
|
if (['select', 'multiple', 'radio'].includes(this.dragFieldType)) {
|
|
|
|
|