Closed Hodgekins closed 9 months ago
Hi @Hodgekins - Thanks for reporting the issue. At present, Enums are not able use as list features. This is limitation around current implementation. I can mark this issue has enhancement request. No ETA. However you can use custom code functionality to work with Enums as per your requirements.
Hi Hari,
Thank you for letting me know. Much appreciated!
All the best,
Ben
On Mon, 18 Dec 2023 at 15:14, Hari @.***> wrote:
Hi @Hodgekins https://github.com/Hodgekins - Thanks for reporting the issue. At present, Enums are not able use as list features. This is limitation around current implementation. I can mark this issue has enhancement request. No ETA. However you can use custom code functionality to work with Enums as per your requirements.
— Reply to this email directly, view it on GitHub https://github.com/FlutterFlow/flutterflow-issues/issues/2018#issuecomment-1860777672, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATEGBQFCW7DIQNDFVQP7A3YKBMVXAVCNFSM6AAAAABAYJEMBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRQG43TONRXGI . You are receiving this because you were mentioned.Message ID: @.***>
Hi @Hodgekins - Thanks for reporting the issue. At present, Enums are not able use as list features. This is limitation around current implementation. I can mark this issue has enhancement request. No ETA. However you can use custom code functionality to work with Enums as per your requirements.
Is this is also related to Enums not working as dropdown options? I can get it to "map list items" but it then still requires "sorting" or "filtering" which also doesn't seem possible (this shouldn't be required either, or at least the option to sort easily per requirement)
I was excited to use Enums but it seems it might be part of other bugs surrounding it atm - https://github.com/FlutterFlow/flutterflow-issues/issues/1840
I believe it could be related. I've put in a feature request internally for better support surrounding enums (the use cases described above). Thank you for your patience.
Has your issue been reported?
Current Behavior
When I create a list of enums, I'm unable to use "List contains item" and select the enum.
Expected Behavior
To be able to choose "List contains item" and select an enum, and for a boolean to be returned.
Steps to Reproduce
1.) Create an enum "roles", create some values E.g. "editor" 2.) Add a page parameter: List (page parameter for simplicity, in my project I'm adding this list to a users collection)
3.) Choose any widget and try to use a variable to control visibility. Find the page parameter, choose "List contains item" select enum, roles, and I'm unable to select any enum values.
Reproducible from Blank
Bug Report Code (Required)
ITFTz/Hqx892sdtD+KXibflFpD04CUMBX5Ir1utvGBMjC5ysE4oiP+LEaXduQtOXSghcAmCbhlMDzM77j87LF8I6ZA6ufb1607puVzzhfFinV8TTO7iSYXZCJ9hXCHaM4cOJswl+VcRZSU4SwE+Pcq3qNleeY8aSfxBlZ7vfcPo=
Context
I would like to use enums to create role based permissions. I'm trying to control visibility based on whether a user has a role. I can achieve this using List, but I thought using enums would be better.
Visual documentation
Additional Info
No response
Environment