This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I'm trying to concatenate the first and last name of the backend user model but it doesn't seem to be possible. This is possible in the list as select
support CONCAT. However, it doesn't seem to be possible when adding relation drop-downs. Only nameFrom
exists.
Have I missed something?
I just created a pull request for a new config field called nameFromSelect
that supports customizing the SQL select
Is this already implemented and if yes, how is the correct Syntax? Perhaps:
nameFrom: CONCAT(vorname, ' ', nachname)
or nameFromSelect: CONCAT(vorname, ' ', nachname)
?
Thanx a lot!
Last updated
user:
label: User
type: relation
select: concat(first_name, ' ', last_name)
More info: https://octobercms.com/docs/backend/forms#widget-relation
1-4 of 4