Posted: August 14, 2013 at 5:32 am
|
Hi, I’ve built few custom question groups that are shown to a customer when he’s booking for any event. Some of those regard for example information about the company he’s working on (name, account number…). I also create a custom registration form for my site using a plugin called “Simplr User Registration Form Plus”. This plugin allows you to create a custom registration form, adding extra fields (other than just username and email). What I’m looking to do right now is to include in the registration form the same fields that are in my Question Groups. The aim is to have those fields already completed if you are logged in, to save time to the customer. I’ve been able to achieve my goal for the standard questions (i.e. address, phone ecc) because those are uniquely identified like “event_espresso_address” and similar. On the other side, the additional questions are simply listed as “TEXT_12”, “TEXT_13” ecc, so I cannot link them in my registration form. Is there another unique identifier that I’m missing or some other way to point to those fields? I hope my explanation makes some sense 🙂 Many thanks! |
|
Hi, Well, the custom questions are uniquely identified: TEXT_12 refers to question ID 12 and it is a TEXT type question. SINGLE_22 would refer to question ID 22 which is a SINGLE type (radio button). Does that help? |
|
Hi, yes that was clear, but the problem is that if I call a field in the registration form as TEXT_12, it’s not matched with the corresponding box on the event registration page. So what I was wondering is if there was any other ID assigned to those additional questions such as “event_espresso_address” (that looks more uniquely recognizable at site level). (For example every event has both the numeric ID and the alphanumeric string assigned by EE, I was looking at the kind of identification) |
|
Probably a better way of asking this question would be: what is the name used in the SQL database to identify the field called “TEXT_12”? Because I suppose “event_espresso_address” is consistent with the database naming. Do I need to add the “event_espresso” prefix? |
|
UPDATE: I’ve looked into the MySQL database and found out that the additional questions didn’t have anything under “system_name” (=NULL). I changed that, assigning a unique name that is correctly picked by the system (now instead of being called TEXT_NUMBER they are called with my names). Still there’s no match. No a follow up question would be: is it possible to add the additional questions under the “Events Profile Information”? If so, where do I need to look? Many thanks! |
Hi there, If you take a look in the espresso-members/member_functions.php file you can review how the Events Profile fields are added. Tip: You can create your own custom functions and hook into WP’s show_user_profile and edit_user_profile action hooks to display these without hacking the plugin directly. |
|
The support post ‘Custom Questions Registration Form’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.