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 CiviContribute (Moderator: Donald Lobo) »
  • Contribution page - Do not want to alter the Email Address content
Pages: [1]

Author Topic: Contribution page - Do not want to alter the Email Address content  (Read 487 times)

civibee2011

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: Joomla 1.5
  • MySQL version: 5.0
  • PHP version: 5.2
Contribution page - Do not want to alter the Email Address content
January 26, 2011, 07:23:56 pm
Hi, is there any setting to prohibit logged in user to change their "Email Address" content when they are in the contribution page? Since some people are careless to alter their email address in the contribution page, I make the email address read only to avoid this.

Rahul Bile

  • I post occasionally
  • **
  • Posts: 112
  • Karma: 16
  • impossible says, I M Possible
    • I AM POSSIBLE
Re: Contribution page - Do not want to alter the Email Address content
January 27, 2011, 01:47:33 am
civibee2011,

there is no such setting available , but you can try below code.

Code: [Select]
$(document).ready(function()
{
if( cj('#email-5').val() != "" ) { cj('#email-5').attr("disabled", true);  }

});


put the above code in : templates/CRM/Contribute/Form/Contribution/Main.tpl

HTH

Rahul.
Consider donating to CiviCRM if you use it. http://civicrm.org/donate

civibee2011

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: Joomla 1.5
  • MySQL version: 5.0
  • PHP version: 5.2
Re: Contribution page - Do not want to alter the Email Address content
January 27, 2011, 04:59:28 am
Wow, it works like a charm. Thanks.
Btw, is it possible not to grey the Email Address content, and how to remove the * (for compulsory input)?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contribution page - Do not want to alter the Email Address content

This forum was archived on 2017-11-26.