I am trying to disable the autocomplete widget's text field in the
controller.
I have tried disabled = True and disabled = 'disabled' as values.
Am
#controller
return dict(value=dict(text=textvalue,attrs=dict(disabled=disabled)))
#kid template
${acfield.display(value=value)}
Thanks,
-Mike
Try this:
#controller
return dict(value=dict(text=textvalue), opts=dict(attrs=dict(text=dict
(disabled="disabled"))))
#kid template
${acfield.display(value=value, **opts)}
Alberto
Thanks,
-Mike