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 CiviCase (Moderator: Dave Greenberg) »
  • Civicase redirection question
Pages: [1]

Author Topic: Civicase redirection question  (Read 1620 times)

leapywca

  • Guest
Civicase redirection question
October 28, 2009, 07:00:50 am
Hey all,

   We are trying to implement functionality to relate case activities other activities and to events.  What we want to do is have custom data in an activity that lists specific events a individual is interested in.  Once they save that activity we want to forward them to the event registration page. 

Similarly we would like Open Case for certain case types to be able to redirect to you to other default activities in that case type that contain custom data (think of this as required data for that case type, and they can't be put in the Open Case activity since all case types share that activity).  We were thinking a custom post hook would be a possible solution but we're a little stuck on if this is the best solution and how to implement it.  Any help would be greatly appreciated.  Thank you!

leapywca

  • Guest
Re: Civicase redirection question
October 30, 2009, 05:42:21 am
To put it simply we want to be able to have a person click the save button on the Open Case page and be redirected to activity inside that case.  Does anyone know if/how his can be achieved?

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: Civicase redirection question
October 30, 2009, 07:47:52 am

use the postProcess hook and redirect to the right page if on open case form

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

leapywca

  • Guest
Re: Civicase redirection question
November 04, 2009, 01:05:47 pm
hey lobo thanks for your reply, do you know how to set the redirection in post process hook? Is there any variable that can be set in the form element so that after the open case, user is automatically redirected to another activity page?
I had a thought that this redirection can also be done from the code which is called on clicking save. So when I viewed source of Open Case I saw that the action on save is action="/drupal/civicrm/case/add" Do you have any idea which code this might be? I'm finding it difficult to locate the php file for this. Any help on this would be awesome.
Thanks!
« Last Edit: November 04, 2009, 01:54:54 pm by leapywca »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Civicase redirection question

This forum was archived on 2017-11-26.