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) »
  • Pre-Populate Contribute Message and Amount Fields
Pages: [1]

Author Topic: Pre-Populate Contribute Message and Amount Fields  (Read 555 times)

greenkoi

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Joomla 3.2.4
  • MySQL version: 5.0.77
  • PHP version: 5.3.3
Pre-Populate Contribute Message and Amount Fields
December 13, 2010, 05:52:43 pm
I'm working with a small non-profit that helps underprivileged kids get outdoors.  Many are not native English speakers and aren't the best written communicators.

We've enabled PCPs for them, but would like to pre-populate the welcome and message text boxes with some boiler plate text, they can accept as is, or tweak to their needs.

I've found I can edit the text above the fields here:

/civicrm/templates/CRM/Contribute/Form/PCP/Campaign.tpl

by hard coding some text in, but would like to actually have the respective text appear in the text boxes.

We also have different PCPs.  One for students, the other for volunteer leaders (chaperons) for the kids.  While we don't really need the text for the volunteer leaders, as most are college kids, it'd still be nice to have.

Can someone provide some direction?

Thanks !

greenkoi

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Joomla 3.2.4
  • MySQL version: 5.0.77
  • PHP version: 5.3.3
Re: Pre-Populate Contribute Message and Amount Fields
December 13, 2010, 05:53:21 pm
btw - i'm on 3.3.0 / Joomla 1.5.22

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Pre-Populate Contribute Message and Amount Fields
December 14, 2010, 02:26:23 am
Quote
would like to actually have the respective text appear in the text boxes

Hi there.  Sounds like an html question than a civicrm question.

This should do the trick:

For a text area:
Code: [Select]
<textarea>Put your text here.</textarea> For a textbox
Code: [Select]
<input type="text" value="Put your text here." />
Quote
One for students, the other for volunteer leaders (chaperons) for the kids.  While we don't really need the text for the volunteer leaders, as most are college kids, it'd still be nice to have.
You could use smarty tags to conditionally set this text.

I imagine that there is specific code for pre-populating the amount field.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Pre-Populate Contribute Message and Amount Fields

This forum was archived on 2017-11-26.