Registrant Settings needs a label field so there's something to display when referencing Registrants. This should be an entity reference field which gives the option to choose any of the fields within the Registrant Settings entity to give the flexibility of Recurring Events even more power.

Here's a screenshot of a use case example where the registrants are site 'User' entity reference fields and that 'User' reference field would be chosen/referenced as the label field in the Registrant Settings entity. As you can see the list items are blank because there's no label to display.

screenshot

Comments

the_glitch created an issue. See original summary.

owenbush’s picture

I'll get this looked at.

owenbush’s picture

Status: Active » Needs review
StatusFileSize
new17.46 KB

Attached is a patch which allows you to specify (using tokens) what the label for registrants should be. This is configurable in the registrant settings under Structure > Events > Registrant Settings. It defaults to: [registrant:email]

Out of the box only a few fields are supported with tokens, but if you install the token module it should expose all fields.

You will need to run database updates to get this to work.

Setting issue to Needs Review.

the_glitch’s picture

applied and tested. Labels work and print from whichever token as patch intends. Thank you.

owenbush’s picture

Status: Needs review » Reviewed & tested by the community

Thanks! Marking as RTBC

  • owenbush committed f9212a5 on 8.x-1.x
    Issue #3091919 by owenbush, the_glitch: Registrant Settings needs a...
owenbush’s picture

Status: Reviewed & tested by the community » Fixed

This has been merged into 8.x-1.x-dev and marked as fixed. Thanks, Darren for your help.

the_glitch’s picture

You're most welcome Owen. I've been busy away for the last couple of weeks but hope to be back into the swing of things raising issues and testing within another couple of weeks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.