Modify select input list in editor form
Modify select input list in editor form
Good afternoon (o;
For editing products in my online shop backend I use an option array to feed a select list where I choose if a product is related or belongs to a series....
Also use an options array for selecting the supplier, which is rather small (< 30).
Now I want to restrict the select input for chosing the relation based on the supplier....and I already have the table setup so each series belongs to a supplier to keep the select input list short.
Can I use the select input update() function to reload the series select input list when the supplier select input changes?
But then I would need to load the json restricted to supplier on editor form open as well....
Any hints welcome ;-)
thanks in advance
richard
Answers
Yep, you could use
dependent()
on the supplier field, and update withfield().update()
as you suggested.Colin