Hi,
I've got a dynamic form that contains either one or several MultipleChoiceFields or ChoiceFields. I want to display an instruction to the user, e.g. for ChoiceField: "Select one of the following", and for MultipleChoiceField: "Select any of the following"
How can I do this? I tried subclassing each of these fields, but I couldn't get the value back out in the template.
Thanks
EDIT
I tried something like:
class MultiWithInstruction(forms.MultipleChoiceField):
def __init__(self, instruction=None, **kwargs):
self.instruction=instruction
return super(MultiWithInstruction, self).__init__(**kwargs)
I couldn't retrieve the value of 'instruction' in the template.