Reactive fields
# general
p
does anyone know how to update a dropdown in avo form based on another field change (another dropdown for example) i used attach scope but it only works when data is already there (so on new form it doesnt work) and also doesnt update on change does Avo have such feature?
l
Hello @proud-breakfast-80041 welcome! We have the #740900436722188401 channel if you feel like sharing. We actually have reactive fields on our roadmap but nothing released yet. In order to achieve it you can implement a stimulus controller that react on a certain field event like we did on the course resource with city and countries https://main.avodemo.com/avo/resources/courses/new
We have documentation about how to integrate a stimulus controller on a resource
And the demo app code is actually public so you can inspire from there
p
thanks
3 Views