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) »
  • Hiding 'Assigned To:' from Activity Forms
Pages: [1]

Author Topic: Hiding 'Assigned To:' from Activity Forms  (Read 537 times)

Ian G.

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 0
    • Atlantic Coast Theatre
  • CiviCRM version: 4.4+
  • CMS version: Joomla 3+
Hiding 'Assigned To:' from Activity Forms
May 21, 2012, 02:51:59 am
I need to hide various elements from the Activity form and have been faily successful in finding the right bits to comment out.

The one I'm stuck on is the 'Assigned to:' field. I managed to hide the field entry box by commenting out line 742 of CRM/Activity/Form/Activity.php - but I can't get rid of the labels and description (see screenshot).

Anyone have any ideas where I need to prune the script as my random searching and deleting isn't working!

Cheers,

Ian.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Hiding 'Assigned To:' from Activity Forms
May 21, 2012, 02:57:51 am
I'd strongly suggest you not to modify directy civi, but use hooks or modify the templates.

http://book.civicrm.org/developer/

In your case, the easiest to implement albeit a bit "hackish" is probably to add a bit of jquery code in the page (search the source of the page to find the .tpl to target)

http://civicrm.org/blogs/dave-greenberg/now-its-easier-add-custom-behaviors-templates
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Ian G.

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 0
    • Atlantic Coast Theatre
  • CiviCRM version: 4.4+
  • CMS version: Joomla 3+
Re: Hiding 'Assigned To:' from Activity Forms
May 21, 2012, 03:07:41 am
Hey!

I've been using custom templates so I'm not altering the main scripts - took a while to figure that bit out!

I'll see if I can make a jquery code work.

Cheers,

Ian.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Hiding 'Assigned To:' from Activity Forms

This forum was archived on 2017-11-26.