Change case of relationship name field in a select
Hi all,
Looking for a bit of help on this one: I've got a Select field which works fine with a relationship:
However, the role names are slug format (super_user, account_admin) etc, and I'd like them to appear in the select as "Super User", "Account Admin", etc.
I thought this would work:
But the if I add a logger() statement into the function, it's not even getting called.
Any ideas how I can do this?
Thanks in advance,
Andy
Looking for a bit of help on this one: I've got a Select field which works fine with a relationship:
However, the role names are slug format (super_user, account_admin) etc, and I'd like them to appear in the select as "Super User", "Account Admin", etc.
I thought this would work:
But the if I add a logger() statement into the function, it's not even getting called.
Any ideas how I can do this?
Thanks in advance,
Andy
Solution
Ah, got there, through a different approach (which obviously I'm sure I tried the first time, but c'est la vie):