Repository navigation
multiselect field problem when using dataview as source #443
Replies: 4 comments 3 replies
|
Let's try to debug this a bit. Can you try this code and see what you get in the console? You have to open the console, then open the form and put the cursor in the dv field: dv.pages('"Informationen"').where(
p => {
console.log(p.recType, form)
return p.recType == form.selType
}
).file.nameDo you know how to open the debug console? |
|
I tried both. I use default values to populate the fields in the form, the plan was to hide them once it is working, ad therefor I clicked directly in the multiselect field. but I also tried to change the type field (e.g. change it to hiking and back to parking) but this did not change the result. |
|
Hi Danielo, best regards |




Uh oh!
There was an error while loading. Please reload this page.
I try to use dataview query for the suggestions of a multiselect field. If I hardcode the query with the value for recType ('parking') as below it works
dv.pages('"Informationen"')
.where(p =>
p.recType == 'parking')
.file.name
if I try to use the value from a form field as below it doesn't work
dv.pages('"Informationen"')
.where(p =>
p.recType == form.selType)
.file.name
any ideas or suggestions are much appreciated ;-)
All reactions