Add custom registrant field to registrants view

  • onsponge
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 5 months ago #12527 by onsponge
I have created a number of registration custom fields. I would like these to appear in the registrants view in the backend. How do I do this? I know I need to edit file
views/registrants/tmp/default.php

but I am not sure how to define the fields so that I can display them.

Do you have example code where this had been done before?

Thanks in advance for your help

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #12533 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Add custom registrant field to registrants view
Hi

Unfortunately, we don't have sample code for that function at the moment. Below are some tips :

1. For each row in registrant view, you will need to have registrant_id and id of custom field .

2. Based on Registrant ID and custom field ID, read data from t0r4j_eb_field_value (replace t0r4j_ with the database table prefix on your site).

3. Display that value !

Hope this give you some clue !

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc