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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • hook_civicrm_validateForm return to page failing --SOLVED --
Pages: [1]

Author Topic: hook_civicrm_validateForm return to page failing --SOLVED --  (Read 461 times)

jere

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.31
  • PHP version: 5.3.10
hook_civicrm_validateForm return to page failing --SOLVED --
October 05, 2012, 10:32:00 am
I have a profile form that includes fields from one record of a custom data set that has multiple records. When I try to validate using  xxx_civicrm_validateForm it fails.

The problem seems to be that although it returns to the profile page, it fails when it reaches variables I set on the custom template from the xxx_civicrm_buildForm using $form->assign. They are no longer set upon return from the validation.

Any ideas of how I might get around this? How the profiles are called originally and how they are called on return from validation are still a bit of a mystery to me.


SOLVED --
The problems was that I was using $_GET variables that were not there on the return after validation. I saved them in the session to use after validation and now it works. I'm a little slow sometimes.


« Last Edit: October 05, 2012, 12:50:37 pm by jere »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • hook_civicrm_validateForm return to page failing --SOLVED --

This forum was archived on 2017-11-26.