I’ve got some <selects> that I need to populate with some choices that depend on the currently logged in user. I don’t think this is possible (or easy) to do from inside the form class, so can I just leave the choices blank and set them in the view instead? Or what approach should I take?
I’ve got some <selects> that I need to populate with some choices that depend
Share
Not sure if this is the best answer, but in the past I have set the choices of a choice field in the init of the form – you could potentially pass your choices to the constructor of your form…