Support

Home Forums WP User Integration WP User Integration – Show Question Group for new users only

WP User Integration – Show Question Group for new users only

Posted: April 16, 2024 at 11:37 pm


c.barthe@futurelearning.fr

April 16, 2024 at 11:37 pm

I am using the WP User Integration add-on to create WP user accounts when they register to our events. To create a user account we want the new user to answer 5 questions (DOB, Gender, Region, Country etc etc) which we would save to their account.

At the moment, those questions are shown for everyone – logged in users and logged out users. Is it possible to only show the question group once the user has entered their name and email, and WP User Integration has checked if they have an account?

I think the function process_wpuser_for_attendee is where the email is checked to see if this is a new user or not. But this function is triggered when the button is pressed to finalise the registration, so the form is submitted, and I couldn’t then show the question group – which I assume would be part of the form already submitted?

I thought about using my own form which would show once the email address is checked and it is a new user. But I’m having issues getting my own form to show (it’s included in the footer with display set to none, and I use JS to show it once it is established this is a new user). I’m assuming it’s a timing issue due to my code being triggered by an AJAX request.

Any guidance or suggestions would be greatly appreciated.


Rio

  • Support Staff

April 17, 2024 at 2:59 am

No, conditional logic within the registration forms is not a feature we currently support within Event Espresso. I can see that feature is under testing and it will be under series of testing before it will be out. I cannot give you ETA as we have been working on other areas of the plugin.

Right now, the only way to do it without creating 2 separate events would be to use JavaScript to selectively hide the question based on the current ticket.

We don’t have documentation on this as its not something we currently support, but if you are comfortable with JavaScript there is a quick example of this here:

https://gist.github.com/joshfeck/c553d579962480410be45f51df074144

Thanks

You must be logged in to reply to this support post. Sign In or Register for an Account

Event Espresso