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 Profiles (Moderator: Dave Greenberg) »
  • Validate Profile on HTML Snippet
Pages: [1]

Author Topic: Validate Profile on HTML Snippet  (Read 1136 times)

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Validate Profile on HTML Snippet
February 12, 2012, 08:40:00 pm
I'm using an HTML snippet to display a CiviCRM profile on a non-civicrm page.

I would like to be able to validate the profile (as is already done by CiviCRM), but without it transfering to a CiviCRM page if there are validation errors. Instead, I would like to display those errors on the original non-civicrm page with the civi HTML snippet.

How would I do this? I'm playing around with the validation hook right now, but that just seems to help me do more validation as opposed to reloading the non-civicrm page with validation errors shown.

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: Validate Profile on HTML Snippet
February 13, 2012, 06:59:18 am

I think u'll need to use your own form layer / validation if you want to control the layout of the page.

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

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Re: Validate Profile on HTML Snippet
February 13, 2012, 10:48:11 am
Ok, that is what I was thinking. Just thought I would check.

Katy J

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 4
    • Third Sector Design
Re: Validate Profile on HTML Snippet
March 20, 2012, 08:29:23 am
Which bits of the snippet did you have to take out to stop it redirecting back to the Civi profile page?
Do what you love, it's your gift to the universe

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Re: Validate Profile on HTML Snippet
March 20, 2012, 10:14:18 am
I didn't end up doing this. I instead creating custom templates for the profile pages along with some custom CSS to achieve the same look that I was going for, but still within the Civi profile page.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Validate Profile on HTML Snippet

This forum was archived on 2017-11-26.