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 CiviEvent (Moderator: Yashodha Chaku) »
  • jQuery on Additional Participant Registration Form
Pages: [1]

Author Topic: jQuery on Additional Participant Registration Form  (Read 1012 times)

SWD

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 3.4.8
  • CMS version: Drupal 6.22
  • MySQL version: 5.5.20
  • PHP version: 5.3.9
jQuery on Additional Participant Registration Form
November 13, 2012, 09:19:03 pm
Hi all,
Got a problem I can't seem to get the bottom of.   The previous developer of the site we are currently managing had implemented an extra field to the Event Registrar to allow the person registering to subscribe to the eNewsletter.   

I've been able to add this field to the Event Attendee profile so that the checkbox appears for "additional participants" but am having problems trying to work out how to "auto-check" the checkbox.   When I view the source of the primary registrant I can see that there is jQuery on the page which I have tracked back to /CRM/Event/Form/Registration/Register.tpl.  Clearly though this code doesn't get included when showing the "Additional Participants" form. 

Can anyone shed any light on where I look or how I add the jQuery to this form as well?

Thanks for any help
Josh

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: jQuery on Additional Participant Registration Form
November 14, 2012, 01:54:54 am
For additional participant templates/CRM/Event/Form/Registration/AdditionalParticipant.tpl file is used.

HTh

Kurund
Found this reply helpful? Support CiviCRM

SWD

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 3.4.8
  • CMS version: Drupal 6.22
  • MySQL version: 5.5.20
  • PHP version: 5.3.9
Re: jQuery on Additional Participant Registration Form
November 14, 2012, 02:10:43 pm
Thanks so much.  That's precisely the point I needed.  For some reason with a custom theme I'd gotten myself locked into looking in the custom theme rather than within the core Civi theme files.

Thanks for the help

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: jQuery on Additional Participant Registration Form
November 19, 2012, 05:00:00 am
You should of course being using a custom templates folder so as not to make any edits in the core CiviCRM codebase.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • jQuery on Additional Participant Registration Form

This forum was archived on 2017-11-26.