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


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 ๐Ÿ™‚

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

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 3 months, 4 weeks ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!