In Plone 6 ClassicUI, I have a schema.Choice field with options defined in its "values" property. Is it possible to update the available options depending on the context?
I have looked at Field and Widget instances of my field and I have not found a way to update it. I inspected the field while in p.a.z3cform updateFields and updateWidgets methods.
class IMyForm(model.Schema):
...
myfield = schema.Choice(
title="My Field",
values=("One", "Two"),
required=True
)