Support

Home Forums Event Espresso Premium Show Hide 2

Show Hide 2

Posted: February 9, 2018 at 1:43 pm


RodeoCES

February 9, 2018 at 1:43 pm

Hello there!
I’ve done several things to try and make this work. I’ve contacted one of the Developers listed. They responded and said they’ll get with the coder. That was over a week ago. So I’m back to trying to figure it out myself. It seems like we’ve been provided all the information but I just can’t seem to make it work.

I am using these two prior help topics.
https://gist.github.com/joshfeck/183209d5239cc07ec94f9ebbfb017d40 and https://eventespresso.com/topic/show-and-hide/

// In this example the *text* question div class is .ee-reg-qstn-13-input-dv
**I changed to .ee-reg-qstn-11-input-dv**
// and the *dropdown* question input class is .ee-reg-qstn-12
**I changed to .spco-ticket-info-dv .item_l**

What I am really trying to do is if the ticket name contains “team” then show the question. Otherwise, if the ticket doesn’t contain the word “team”, hide the question.


Josh

  • Support Staff

February 9, 2018 at 3:11 pm

Hi there,

Can you post a link to the event in question, and give us a few more details so we know what were looking at? The code changes you mention here do not appear to be correct either, maybe you can post the contents of the code into a pasteBin or gist and we can review the code in context.


RodeoCES

February 9, 2018 at 3:59 pm

Hi Josh. Thanks for the reply.
I’ve posted to pastebin here. https://pastebin.com/ex4Wzg1e


RodeoCES

February 9, 2018 at 4:04 pm

Also, here is the event link.
https://rodeoces.com/events/test_casa-grande/


Josh

  • Support Staff

February 9, 2018 at 4:05 pm

Can you post a link to the event in question, and give us a few more details so we know what were looking at?


RodeoCES

February 9, 2018 at 4:20 pm

Sure Josh!
The primary & secondary registrants will always be the same. They can purchase any number of tickets. Some of the tickets (events they participate in) are singular and some of the tickets (events) are a duo/team. So for those tickets that only have one competitor, hide the “what is the team name” question. And those are a duo, I’d like them to provide me the names that make up the duo.

Does this help?


Josh

  • Support Staff

February 9, 2018 at 4:46 pm

Can you make it so I don’t have to have a user account to test the registration form? This can probably be accomplished using a bit of CSS, but I want to make sure I can review the html of the registration form, which is currently prohibited right now.


RodeoCES

February 9, 2018 at 4:47 pm

I set Force Login for registrations? to no.


Josh

  • Support Staff

February 9, 2018 at 6:12 pm

I didn’t go through every ticket combination, but basically you can hide the team question for each non-team ticket with a little bit of CSS like this:

.spco-attendee-ticket-194 .ee-reg-qstn-24-input-dv,
.spco-attendee-ticket-210 .ee-reg-qstn-24-input-dv {
display:none;
}

In the above, tickets with ID 194 and 210 both do not need the team question, so that gets hidden. You can get the ticket ID’s for the non-team ticket options by clicking on the gear icon which will open up the advanced options where you’ll see the ticket ID.


RodeoCES

February 9, 2018 at 7:06 pm

Josh,
Yes, the suggestion you provided above acts as requested. However, for each event, I will have 36 tickets to hide. And with the current number of events listed, that would mean over 360 tickets to hide using the CSS method. And I’m looking to add more events throughout the year.
Do you have anything else up your sleeve?


Josh

  • Support Staff

February 12, 2018 at 8:56 am

Alternatively you could set up a separate event for team registration. Then you can set up questions for team registrations only, assign them to a team registration question group, and assign that question group to the events for team registration only.


RodeoCES

February 22, 2018 at 10:38 am

Josh,
Thanks for the suggestion but I am unable to split up my events.


Josh

  • Support Staff

February 22, 2018 at 2:27 pm

We can help you split up the events if you can show us where you had trouble with that.


RodeoCES

February 22, 2018 at 2:35 pm

Josh,
My apologies. I meant that I won’t split up an event. I have to keep it as one event because my users expect that one event is truly one event.


Josh

  • Support Staff

February 22, 2018 at 3:12 pm

I see. I’m sorry I have no further suggestions, but if you have a moment you can vote for this feature on its trello card:

https://trello.com/c/vEShUtBA/24-add-on-conditional-logic-registration-forms


RodeoCES

February 22, 2018 at 3:32 pm

Josh,
I understand. At least we have something to work with by hiding the questions. Yes, I will definitely vote for that development. Thanks again Josh for all your help.

The support post ‘Show Hide 2’ 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