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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Loading add/edit activity forms in modal dialog?
Pages: [1]

Author Topic: Loading add/edit activity forms in modal dialog?  (Read 796 times)

malks

  • I post occasionally
  • **
  • Posts: 81
  • Karma: 7
  • CiviCRM version: 3.4.x 4.x
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.x
  • PHP version: 5.3.x
Loading add/edit activity forms in modal dialog?
April 18, 2011, 01:53:33 am
The reason I ask, is that I've done a calendar view of activities using the excellent jquery fullcalendar plugin that works OK, but users would like to click on the calendar in an empty spot to create a new activity.  I'm a bit stumped about where to start and I don't want to reinvent the wheel.

My first thought is that maybe if I call the current add/edit event URL and stick some parameters on the end of it I could use hook_civicrm_buildForm to load it up as a modal dialog and populate some defaults.  Does this sound even possible?  Anyone have any better ideas?

My other thought is just to use the ajax form of the API to create the activity, but they will more than likely want to add contacts to the target and assignee fields and I don't want to reinvent that as well.

Malks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Loading add/edit activity forms in modal dialog?

This forum was archived on 2017-11-26.