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 (Moderator: Dave Greenberg) »
  • Modifying Event Registration Templates
Pages: [1]

Author Topic: Modifying Event Registration Templates  (Read 532 times)

HarryJ

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
  • CiviCRM version: 4.4.9
  • CMS version: Joomla 2.5.27
  • MySQL version: 5.1.70
  • PHP version: 5.3.16
Modifying Event Registration Templates
April 01, 2014, 09:05:36 am
We have used CiviEvent for online event registration for the past few years. The form uses price sets. We are on CiviCRM 4.4.4.

Our Registration is for Individuals or Families, so we have enabled 'Addtional Participants' to allow multiple registrations for the family. We set the registration choices as a radio control with three choices: Individual, Family, or Additional Person with the registration control as required and Additional Person fee as zero.

In the past, we have hidden the Additional Person choice on the Register.tpl and hidden the Family and Individual choices on the AdditionalParticipants.tpl using custom templates. It has worked great in the past. When we modify the 4.4 versions, it throws an error:

TypeError: $(...) is null

The line contains: $("#CIVICRM_QFID_257_6").hide();

We have been following the instructions here:

http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in,+Profile,+Contribution+and+Event+Registration+Screens

Anyone have similar difficulty?



Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Modifying Event Registration Templates
April 01, 2014, 11:39:49 am
Try

Code: [Select]
cj("#CIVICRM_QFID_257_6").hide();
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.

HarryJ

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
  • CiviCRM version: 4.4.9
  • CMS version: Joomla 2.5.27
  • MySQL version: 5.1.70
  • PHP version: 5.3.16
Re: Modifying Event Registration Templates
April 01, 2014, 12:01:56 pm
That worked! Thanks Hershel.

For others, the proper syntax on the wiki (link above) should be:

Code: [Select]
{literal}
<script>
cj("#YOUR_CIVICRM_QFID_999_9").hide();
cj("label[for='YOUR_CIVICRM_QFID_999_9']").next('br').remove();
cj("label[for='YOUR_CIVICRM_QFID_999_9']").hide();
</script>
{/literal}

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Modifying Event Registration Templates
April 01, 2014, 12:35:34 pm
Can you update the wiki?
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.

HarryJ

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
  • CiviCRM version: 4.4.9
  • CMS version: Joomla 2.5.27
  • MySQL version: 5.1.70
  • PHP version: 5.3.16
Re: Modifying Event Registration Templates
April 01, 2014, 02:41:44 pm
Yep. Done.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Modifying Event Registration Templates

This forum was archived on 2017-11-26.