Reputation: 3177
I have an entity field with a picklist and I want to let the user add new values to this when it's necessary. For now, I just can add new values from the Solution > Entity > Fields panel. Can this be done also when creating a new instance of the entity?
Upvotes: 0
Views: 86
Reputation: 8498
You can do this by calling the MetadataService. Capture the text value for the new entry from the user then add this via a call to the MetadataService in a plugin.
If it's likely that users will be adding a sufficient number of values themselves I'd consider using a lookup rather than a picklist.
Upvotes: 2