Skip to content

Commit

Permalink
Adding new form type that allows new values (#4540)
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 authored Mar 25, 2024
1 parent 1742b52 commit e74321c
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/dispatch/static/dispatch/src/forms/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,21 @@ function getCurrentPage(form_schema) {
}
} else {
if (hasFormkitPro) {
obj = {
$formkit: "dropdown",
multiple: true,
options: item.options,
"selection-appearance": "tags",
...obj,
if (item.allow_new) {
obj = {
$formkit: "taglist",
allowNewValues: true,
options: item.options,
...obj,
}
} else {
obj = {
$formkit: "dropdown",
multiple: true,
options: item.options,
"selection-appearance": "tags",
...obj,
}
}
} else {
obj = {
Expand Down

0 comments on commit e74321c

Please sign in to comment.