Skip to content

Commit

Permalink
fix select input options (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragchhatrala authored Aug 30, 2024
1 parent 3d2d485 commit 6d4b5b8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@
Advanced options for your select/multiselect fields.
</p>
<text-area-input
v-model="optionsText"
:name="field.id + '_options_text'"
class="mt-3"
label="Set selection options"
Expand Down Expand Up @@ -658,6 +659,9 @@ export default {
mbLimit() {
return (this.form?.workspace && this.form?.workspace.max_file_size) ? this.form?.workspace?.max_file_size : 10
},
optionsText() {
return this.field[this.field.type].options.map(option => option.name).join('\n')
},
prefillSelectsOptions() {
if (!['select', 'multi_select'].includes(this.field.type)) return {}
Expand Down

0 comments on commit 6d4b5b8

Please sign in to comment.