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) »
  • event registration email address when logged in
Pages: [1]

Author Topic: event registration email address when logged in  (Read 458 times)

dimpzor

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.0.4
  • CMS version: Joomla 1.6
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
event registration email address when logged in
June 30, 2011, 02:50:13 am
i have an event setup so users have to login to register
going through the register process, once they click 'register' there is a page with their pre-populated email address.
i would like this field to be greyed out so they cannot change the address. is there a way to set this input's disabled value to 1?

cheers

sushant

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 8
  • CiviCRM version: v3.2.x,v3.3.x v4.0.x, v4.x,trunk
  • CMS version: Drupal 6/7 ,joomla 1.5,1.6
  • MySQL version: 5.1.51
  • PHP version: 5.3.3
Re: event registration email address when logged in
July 01, 2011, 02:06:35 am
IMO,

You can add
Quote
readonly="readonly"
attribute in CRM/Event/Form/Registration/Register.php ( line no 308).

Hth
Sushant .
CiviCRM Priority Support
http://support.civigardens.com/
http://osseed.com

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: event registration email address when logged in
July 01, 2011, 02:39:41 am
Yes, you can use buukdForm hooks and update attributes of email field to make it readonly.

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • event registration email address when logged in

This forum was archived on 2017-11-26.