Support

Home Forums Event Espresso Premium Custom Shortcode

Custom Shortcode

Posted: February 9, 2020 at 1:12 pm

Viewing 10 reply threads


PfadfinderSelm

February 9, 2020 at 1:12 pm

Ok, i’m be honest. I don’t understand how to add a custom shortcode for the messagesystem. I have the problem that the person who is making the booking is not the person who is comming with us. We make a summercamp an the parents registrated her kids. So the attendee is the kid but the mail has to send to the parents. So i need a shortcode to get the mail-adress, the name and some other information from the parents.
I read the instructions from this documentation post “Messages System: How to add custom message shortcodes” and i understand this in general, but i don’t now how i can do it.


Tony

  • Support Staff

February 10, 2020 at 4:15 am

Hi there,

From the above, it doesn’t sound like you need a custom shortcode.

Are you collecting the parent’s email address on the registration form?
If so I’m assuming you are doing so using a custom question you created with EE?

Can you link me to the event so I can run a test registration and view the set up?

You can likely use the default shortcodes built into Event Espresso for the above situation, it just depends on how you have the event set up as to which shortcode you use.


PfadfinderSelm

February 11, 2020 at 5:17 am

Hi,

the parents have to register on our homepage and yes in this moment we collect the E-Mail-Address.
For the Event we use the Questiongroup “Personal Information”, its the one we cant make changes, to get the Information of the attendee, so this Information will show in the Message if we put in the shortcode attendee-list.

This is the link to the event page
https://www.pfadfinder-selm.de/index.php/veranstaltungen-2/

You need the Passwort PfadfinderSelm


Tony

  • Support Staff

February 11, 2020 at 5:37 am

the parents have to register on our homepage and yes in this moment we collect the E-Mail-Address.

Ok, but that doesn’t answer my question:

Are you collecting the parent’s email address on the registration form?

If you ask for the email on EE registration form you can use the answer to that question in the Emails.

So on your registration form you have the INFORMATIONEN ERZIEHUNGSBERECHTIGTE question on the primary registrant, you want to use the email address question in that to send the emails, correct?

For the Event we use the Questiongroup “Personal Information”, its the one we cant make changes, to get the Information of the attendee, so this Information will show in the Message if we put in the shortcode attendee-list.

My apologies, but I don’t understand what this means, can you add more details?


PfadfinderSelm

February 11, 2020 at 5:55 am

Our question “Informationen Erziehungsberechtigte” is a group we make an yes we wont this E-Mail Adress for the messagesystem.

The Group of Question that is called “personal information” that on, who is the gefault group in ee. I only can find a shortcode to use this E-Mail for the messagesystem so far, but in this form we collect the informatin of the kids, so the name of the kids will shown if we use the shortcode attendee-list.

Sorry if my english is terrible. I do my best


Tony

  • Support Staff

February 11, 2020 at 6:10 am

Our question “Informationen Erziehungsberechtigte” is a group we make an yes we wont this E-Mail Adress for the messagesystem.

Ok, so this make this fairly straight forward and you don’t need a custom shortcode.

That question group is assigned to the ‘Primary Registrant’, which means you can use a shortcode that pulls the answer from the Primary registrant and we have one that pulls the answer to questions.

[PRIMARY_REGISTRANT_ANSWER_*{question-text}]

So in your example [PRIMARY_REGISTRANT_ANSWER_*E-Mail Adresse] should pull the answer provided for that question. Note that the Question text passed to the shortcode must match the ‘Question Text’ field set on the question exactly for this to work.

The Primary Registrant system email address has its own specific shortcode and the above will only search for ‘custom questions’ so you’ll get the custom answer, not the ‘Personal Information’ answer.

The Group of Question that is called “personal information” that on, who is the gefault group in ee. I only can find a shortcode to use this E-Mail for the messagesystem so far, but in this form we collect the informatin of the kids, so the name of the kids will shown if we use the shortcode attendee-list.

So you also want the parent email listed in the ATTENDEE_LIST section?

Sorry if my english is terrible. I do my best

No apology needed 🙂 I just don’t want to send you down the wrong path if I don’t fully understand your question.


PfadfinderSelm

February 11, 2020 at 7:08 am

Hey, at first it worked. Thnaks for this.
No, if i can, i woud delete the E-Mail Question from the System group “personal information”, but it’s not possible.


Tony

  • Support Staff

February 11, 2020 at 9:20 am

That’s correct, you can not remove the System email question from Personal Info.

You could use jQuery to hide the additional email addresses and then copy the value set in the visible field to all of the others (you’ll need to do that as a value is required).


PfadfinderSelm

February 11, 2020 at 10:26 am

Ok its sound interesting, how can i do this?


PfadfinderSelm

February 11, 2020 at 10:26 am

Ok its sound interesting, how can i do this?


Tony

  • Support Staff

February 12, 2020 at 3:16 am

The above isn’t something we have available within EE, you would need something custom created by a developer for your set up.

I’ve previously created an example of how to do the above when using the email address within the Personal Information group (it leaves the first email field and then hides all others) which you can find here:

https://gist.github.com/Pebblo/f27056f2bcf220f5d391

Viewing 10 reply threads

The support post ‘Custom Shortcode’ 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