Link for example here:
80.241.217.183/index.php?option=com_comprofiler&task=registers&Itemid=167
Dropdown at top declares registrants as (cb_membertype):
ATHLETE: User Group A (with first and last name)
EVENT: User Group B (with cb_eventname field and first and last names for account contact)
Upon completion of registration, we have the display field working fine to show based on user type as:
[cb:if cb_membertype="Athlete"][name][/cb:if][cb:if cb_membertype="Event"][cb_eventname][/cb:if]
However when using search to find a EVENT, the search results display the [name] field rather than the [cb_eventname] field.. this is quite confusing to users as they may not even know the name of the person who created the event.
How might I fix this? Do i need a trigger to keep first / last as contact info but change [name] to the event name in case where cb_membertype = event
Alternatively I have tried using [name] as the required registration field... but this (without regex) is less clean as I still want to capture first/last for event creators.