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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • filled subject at custom Activity Type
Pages: [1]

Author Topic: filled subject at custom Activity Type  (Read 463 times)

markjohan

  • I post occasionally
  • **
  • Posts: 102
  • Karma: 0
  • ..
  • CiviCRM version: 4.4.2
  • CMS version: Wordpress 3.6.1
  • MySQL version: 5.1.66-0+squeeze1
  • PHP version: 5.3.27
filled subject at custom Activity Type
November 24, 2013, 04:28:35 am
Hello,

Is it possible to "pre" filled a subject on a custom Activity Type?
for example by a url?

crm-activity-form-block-subject=somenameorsomthing

thanks.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: filled subject at custom Activity Type
November 24, 2013, 08:01:20 am

yes, you can do this by implementing the buildForm hook in an extension. You can also do this via some javascript in the extra.tpl file

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

markjohan

  • I post occasionally
  • **
  • Posts: 102
  • Karma: 0
  • ..
  • CiviCRM version: 4.4.2
  • CMS version: Wordpress 3.6.1
  • MySQL version: 5.1.66-0+squeeze1
  • PHP version: 5.3.27
Re: filled subject at custom Activity Type
November 25, 2013, 12:17:16 am
Hello Lobo, Thanks for your reply.

I thing i gonna use the extra.tpl Do you know where i can find some example of placing some tekst into a CiviCRM field? (I am no expert in Javascript)

Thanks

markjohan

  • I post occasionally
  • **
  • Posts: 102
  • Karma: 0
  • ..
  • CiviCRM version: 4.4.2
  • CMS version: Wordpress 3.6.1
  • MySQL version: 5.1.66-0+squeeze1
  • PHP version: 5.3.27
Re: filled subject at custom Activity Type
November 28, 2013, 05:29:52 am
Does someone knows how i can do this? has someone an example or link?

Thanks!

markjohan

  • I post occasionally
  • **
  • Posts: 102
  • Karma: 0
  • ..
  • CiviCRM version: 4.4.2
  • CMS version: Wordpress 3.6.1
  • MySQL version: 5.1.66-0+squeeze1
  • PHP version: 5.3.27
Re: filled subject at custom Activity Type
November 29, 2013, 01:39:50 am
Hello,

Is it possible for Wordpress? Any help would be appreciated!
I just want to fill the subject.

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: filled subject at custom Activity Type
November 29, 2013, 04:02:16 am
Here is something that help you:
https://civicrm.org/blogs/dave-greenberg/now-its-easier-add-custom-behaviors-templates

S.
CiviCRM Priority Support
http://support.civigardens.com/
http://osseed.com

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • filled subject at custom Activity Type

This forum was archived on 2017-11-26.