CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Contact form instead of email address in "Event Location"/"Event Information"?
Pages: [1]

Author Topic: Contact form instead of email address in "Event Location"/"Event Information"?  (Read 2290 times)

ronald

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 5
Contact form instead of email address in "Event Location"/"Event Information"?
January 04, 2009, 09:54:16 am
Is it possible to have a link to a contact form on the Event Information page ("/contact" would be good enough for now), instead of an email address?
If so, how?

TIA for any hints,

Ronald

tabidi

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 5
Re: Contact form instead of email address in "Event Location"/"Event Information"?
January 04, 2009, 10:21:40 am
You could link a profile in the event form and capture the required fields. Checkout some of the event demos @

http://sandbox.civicrm.org/civicrm/event/register?id=4&reset=1

this particular event is using the name & address profile

ronald

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 5
Re: Contact form instead of email address in "Event Location"/"Event Information"?
January 04, 2009, 10:57:38 am
Thanks for your reply, tabidi.
Let me try to rephrase/clarify what I'm after.

If we look at the same event you're referring to, but instead of the registration page (event/register), at the "Event Information" page (event/info):
http://sandbox.civicrm.org/civicrm/event/info?id=4&reset=1

There was no email address there on that page, but just to demonstrate what I mean I added one via this "Event Location" page (login required):
http://sandbox.civicrm.org/civicrm/admin/event?reset=1&action=update&id=4&subPage=Location
which has fields for "Email (preferred)" and "Phone (preferred)".

The address entered in the latter page appears on the former page in clear text.
What I would like is for that page ("Event Information", the first link) to rather show a link to a contact form, but I don't see any way to do that.

In other words, it's not about data to be captured from visitors but about that which is presented on the "Event Information" page (event/info).

I hope this makes my question a bit clearer.

Thanks again & TIA for any other input anyone might have.

Cheers,

Ronald

[Edit: of course I know that I can put a link into the description text at the top, however as the form has a pre-defined field for "Contact" it would be nice to have the link right there in a conspicuous place, along with any phone numbers and other project data.]
« Last Edit: January 04, 2009, 11:08:50 am by ronald »

tabidi

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 5
Re: Contact form instead of email address in "Event Location"/"Event Information"?
January 04, 2009, 11:42:32 am
I think I get what you are saying, you want to show information about the person related to the email entered on the event location setup page.

I assume you can edit civicrm/templates/CRM/Event/Page/EventInfo.tpl to show a link to the contact person identified by the email.


ronald

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 5
Re: Contact form instead of email address in "Event Location"/"Event Information"?
January 04, 2009, 12:05:28 pm
Looking good - I don't understand well enough what the code does to implement an additional URL field, but just throwing out "mailto:" (and then obviously using fully qualified URLs) should give me what I want. I had hoped that there might be a way to do it without hacking, but as that doesn't seem to be the case I guess I'll do just that.

Many thanks for pointing me to the right spot!

Cheers,

Ronald
« Last Edit: January 04, 2009, 12:07:14 pm by ronald »

ronald

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 5
Re: Contact form instead of email address in "Event Location"/"Event Information"?
January 04, 2009, 12:25:16 pm
Quote from: ronald on January 04, 2009, 12:05:28 pm
Looking good - I don't understand well enough what the code does to implement an additional URL field, but just throwing out "mailto:" (and then obviously using fully qualified URLs) should give me what I want.

Dang - of course it does not, because the form where I enter the email address checks for proper syntax and doesn't let me just enter "/contact"...

But I found a better way, even without hacking: just click "another phone" and instead of a number enter:
Code: [Select]
<a href="/contact">Email</a>
Works like a charm and looks good, too!  :)
(I'm glad that field accepts character strings and the form does not force me to select a phone type from the list. Much more than the above would not fit into the field, but that's fine with me. :))

Hey, that's so cool, I've done it in the sandbox as well so that you can have a look:
http://sandbox.civicrm.org/civicrm/event/info?id=4&reset=1

The contact form is not enabled, so it doesn't really work, but you get the idea.
Super!

Cheers,

Ronald

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Contact form instead of email address in "Event Location"/"Event Information"?
January 04, 2009, 02:58:14 pm
Hi Ronald - Looks like you found a good solution. Going forward, you still might want to customize either the layout or content of the templates used by CiviCRM. You can do that without "hacking core files" - by creating your own version and putting it in a custom template path:

http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in%2C+Profile%2C+Contribution+and+Event+Registration+Screens
Protect your investment in CiviCRM by  becoming a Member!

ronald

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 5
Re: Contact form instead of email address in "Event Location"/"Event Information"?
January 04, 2009, 03:17:48 pm
Hi Dave,

Thanks for your pointer - now that's really interesting, and great documentation!  :)
That might come in quite handy at some point and I had no clue that this functionality existed.
(Thanks also for implementing the feature I requested - the link back from the "Thank You!" page to the Event Info!)

Cheers,

Ronald

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Contact form instead of email address in "Event Location"/"Event Information"?

This forum was archived on 2017-11-26.