AI OnAI Off
I use an enum as a criteria here: https://github.com/davidknipe/CookieVisitorGroupCriteria/blob/master/CookieVisitorGroupCriteria/Models/CookieValueCriterionModel.cs#L23
May be worth comparing? Things that jump out are that I don't define the widget type, I think the UI works it out.
David
Weirdly enough it looks like you are trying to build a criterion for cookies? If so my package may do what you want?
https://nuget.episerver.com/package/?id=CookieVisitorGroupCriteria
If anything is missing based on your requirements I'd be happy to accept a PR get it added to the Nuget feed and attribute you as a collaborator :)
Hi,
I'm trying to create a custom criterion where one of the values is a dropdown using the Visitor Groups EnumSelectionFactory, but am unable to get any of the values to populate in the dropdown.
I've followed the documentation here and here, but haven't had any luck. Any ideas where the issue could be?
Code below:
CriterionModel
Criterion
Enums.xml
Thank you.