Split function on UI filter

#1

Given a filter that provides a dropdown list of User by mail
like user1.surnamuser1@email.com I want to show up in the list only the part before the @ …
is it available a “split” function I can apply on the “displayField”: “name”?

Thanks

0 Likes

#2

Have a look into the UI helper functions, I guess C3.script.helpers.splice can do that.
Check the UI helpers from the console of the web page with C3.script.helpers

0 Likes

#3

I did use the strLeft function setting the @ as parameter

0 Likes

closed #4
0 Likes