-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autocomplete values (vocabulary?) for TokenInputFieldWidget #19
Comments
@flecox could you please check this? |
@jperals Currently it's hardcoded in token_input_widget.py: values = self.context.portal_catalog.uniqueValuesFor('Subject')
old_values = self.context.Subject() |
I've done something similar in this package: Unfortunately it's not completed and well documented but it could be useful for you. |
@gborelli Thank you |
@frapell any comments? |
Adding more info here:
|
@maethu did you succeed on your proof-of-concept? |
@hvelarde Unfortunately not. It's possible to search groups/users and add new entries if you wand. I wasn't able to implement it as a proper widget with vocabulary source. |
TokenInputFieldWidget is supposed to provide an autocomplete functionality that suggest values to the user as (s)he types, but where are these values fetched from?
In Dexterity, only fields of type Choice can have a vocabulary[1], but your readme[2] seems to say that the TokenInputFieldWidget can only be used with (a List of) TextLine fields.
I tried using Choice fields with the TokenInputFieldWidget instead of TextLine fields, and confirmed that it doesn't work.
[1] http://plone.org/products/dexterity/documentation/manual/developer-manual/advanced/vocabularies
[2] https://github.com/collective/collective.z3cform.widgets#new-fields
The text was updated successfully, but these errors were encountered: