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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • customizing a registration form
Pages: [1]

Author Topic: customizing a registration form  (Read 1300 times)

webcomm

  • Guest
customizing a registration form
January 30, 2008, 12:54:04 pm
Hi,

I have an event registration form at /civicrm/event/register?id=18&reset=1

The form has a section for name, organization, address, etc.  Then it has another section lower on the page for billing info, which also includes name, address, etc.  I want to add a checkbox to the page to give the user the option to populate those billing fields with the name/address already supplied previously on the form. 

This is not hard to do with HTML/javascript.  But I'm not sure how to go about making changes to the HTML.  Is there a template somewhere... or some way to override the standard output?  I found a file at /sites/all/modules/civicrm/CRM/Event/Form/Registration/Register.php -- that file seems to control the registration form, but it's a sea of PHP, with no apparent way to customize the output.

The form already has IDs for all the input fields, so really I just need to be able to add a checkbox field to the top of the "Billing Name and Address" fieldset.  Is that possible?  Once I have that checkbox it will be easy enough to reference a javascript file to get the fields to auto-populate.

Thanks,
Ryan

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: customizing a registration form
January 30, 2008, 04:42:39 pm
One way to do this is to use the "customized template" facility - and create your own version of the Event Registration template which includes the javascript you need. Documentation for this is here: http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in+and+Profile+Screens
Protect your investment in CiviCRM by  becoming a Member!

webcomm

  • Guest
Re: customizing a registration form
January 31, 2008, 11:53:57 am
thanks Dave.  it looks like that will work for me.

cofuzed

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
Re: customizing a registration form
October 13, 2010, 08:15:45 am
Arrggh.... this document is missing.... can someone redirect me?

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: customizing a registration form
October 13, 2010, 11:44:13 am
sure - is this what you are after?

http://wiki.civicrm.org/confluence/display/CRMDOC32/Customize+Built-in,+Profile,+Contribution+and+Event+Registration+Screens
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • customizing a registration form

This forum was archived on 2017-11-26.