How to generate select options dynamically based on a sibling field? #9448
Unanswered
mikeploythai
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
-
I have a collection with two fields: "tiers" and "deliverables". The idea I have is for the user to create tiers, and those new tiers would populate the options field of a select input I have in the "deliverables" on save.
I was thinking about using the
afterChange
collection hook to fetch the newly saved tiers and update the select options using them, but I'm not able to update the select input like that. Any alternatives I can approach?EDIT: I'm also considering creating a custom server component with a nested client component, but I wanna see if it's possible via the hook first
Beta Was this translation helpful? Give feedback.
All reactions