Support

Home Forums Event Espresso Premium Make Address Information question group checked by default when creating an even

Make Address Information question group checked by default when creating an even

Posted: July 2, 2020 at 9:33 am

Viewing 7 reply threads


refocuseducation

July 2, 2020 at 9:33 am

Hi there,

Is there a way to have the Address Information question group checked by default for all events? I want to make sure the event admin doesn’t forget to check that each time.

Thanks!


Tony

  • Support Staff

July 2, 2020 at 11:11 am

Hi there,

Currently not, we do have a snippet that will enable all question groups on the primary registrant using jQuery here:

https://gist.github.com/Pebblo/8f7331ef2e418ab1bd0e26716e1eb1d0

Do you have additional custom question groups or just Personal Info and Address info? If you just have those 2 just add the above to a custom functions plugin on the site and it should check them by default for you. We have some documentation on creating a plugin here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


refocuseducation

July 2, 2020 at 12:35 pm

Hi Tony,

Thanks for getting back to me. I added that snippet, and tested by creating a new event but the Address Info wasn’t checked by default ==> snipboard.io/p316Tn.jpg

We are only using the Personal and Address Questions for the Primary registrant. Any idea why this didn’t work?

Thanks!


Tony

  • Support Staff

July 2, 2020 at 1:05 pm

I’ve tested the above snippet to confirm it works, where on the site did you add that snippet?


refocuseducation

July 2, 2020 at 1:37 pm

Hmm I must be doing something wrong then. I added it into my functions.php file, right after the snippet from you all that removes the “Add state” link in the registration (that snippet is working) ==> snipboard.io/tArOgP.jpg

Is that correct?

Thanks!


Tony

  • Support Staff

July 2, 2020 at 2:18 pm

Your theme’s functions.php file may load too late during the request for this to work, please follow the link above and create a custom functions plugin, then add the snippet there.


refocuseducation

July 2, 2020 at 2:41 pm

That makes sense! Thank you that worked perfectly ๐Ÿ™‚


Tony

  • Support Staff

July 2, 2020 at 2:42 pm

Great and you’re most welcome ๐Ÿ™‚

Viewing 7 reply threads

The support post ‘Make Address Information question group checked by default when creating an even’ 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.

Event Espresso