How do i make a dynamic dropdown or Data select and use form actions to pass that data to backend file and make api call. #11976
Unanswered
devloper16
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am brand new front end development and svelte kit.
I am trying to make pair of dynamic dropdowns I have a pocektbase collection named "users" that contains 2 fealds User and Asset. First dropdown contains list of users and second one will show list of assets for the selected user.
I am using daisyui and tailwindcss. This is my +page.svelte code.
And this is my backend code that requests form data.
The problem I am facing is colsolel.log from front end is showing correct selection but the back end is console logging empty object.
What am I doing wrong here?
Thank you for help,
Beta Was this translation helpful? Give feedback.
All reactions